diff --git a/src/lib/misc.c b/src/lib/misc.c index d332758..16c2b7e 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -60,10 +60,8 @@ void checkVersion(inputFlags flags) fileBuffer = fopen(VERSIONS_NAME, "r"); fseek(fileBuffer, 0, SEEK_END); buffer = malloc(ftell(fileBuffer)); - fclose(fileBuffer); - - //SET fileBuffer - fileBuffer = fopen(VERSIONS_NAME, "r"); //TODO: Find some realloc or something, dumbass + + rewind(fileBuffer); //REWIND fileBuffer (NO SHIT) //FIX buffer strcpy(buffer, "");