diff --git a/src/graphics/newci.c b/src/graphics/newci.c index 33ae09f238d2f4347eb0909c741778a99b93d814..02db92f6c443f4566c42012c7b55d94996776eaf 100644 --- a/src/graphics/newci.c +++ b/src/graphics/newci.c @@ -89,7 +89,9 @@ static void goodfixname(char *name, char *ext, char *home, int force) if (!hassuffix && *ext != '\0') { - name = realloc(name, sizeof(char) * (len + strlen(ext) + 2)); /* name + '.' + ext + '\0' */ + /* Disabling reallocation because all strings are char[256], will change in future */ + /* Warning: when doing reallocation, return char* or take char** because of reallocation */ + //name = realloc(name, sizeof(char) * (len + strlen(ext) + 2)); /* name + '.' + ext + '\0' */ sprintf(name + strlen(name), ".%s", ext); } }