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");
|
fileBuffer = fopen(VERSIONS_NAME, "r");
|
||||||
fseek(fileBuffer, 0, SEEK_END);
|
fseek(fileBuffer, 0, SEEK_END);
|
||||||
buffer = malloc(ftell(fileBuffer));
|
buffer = malloc(ftell(fileBuffer));
|
||||||
fclose(fileBuffer);
|
|
||||||
|
rewind(fileBuffer); //REWIND fileBuffer (NO SHIT)
|
||||||
//SET fileBuffer
|
|
||||||
fileBuffer = fopen(VERSIONS_NAME, "r"); //TODO: Find some realloc or something, dumbass
|
|
||||||
|
|
||||||
//FIX buffer
|
//FIX buffer
|
||||||
strcpy(buffer, "");
|
strcpy(buffer, "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user