Fix system.c for C89

This commit is contained in:
def 2016-05-01 19:35:21 +02:00
parent 2a92a171da
commit c683703df0

View file

@ -1705,8 +1705,8 @@ int fs_storage_path(const char *appname, char *path, int max)
int fs_makedir_rec_for(const char *path)
{
char buffer[1024*2];
str_copy(buffer, path, sizeof(buffer));
char *p;
str_copy(buffer, path, sizeof(buffer));
for(p = buffer; *p != '\0'; p++)
{
if(*p == '/' && *(p + 1) != '\0')