found some better way to rewind FILE in version checking

just removing that TODO
This commit is contained in:
Václav Šmejkal 2022-05-25 17:18:39 +02:00
parent d30e8db886
commit cffdd22b85

View File

@ -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, "");