found some better way to rewind FILE in version checking
just removing that TODO
This commit is contained in:
parent
d30e8db886
commit
cffdd22b85
@ -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, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user