fix d21527c0
This commit is contained in:
parent
aeaf468c4b
commit
ab5d26897f
2
src/io.c
2
src/io.c
@ -492,7 +492,7 @@ unsigned long File_length_file(FILE * file)
|
|||||||
offset_backup = ftell(file);
|
offset_backup = ftell(file);
|
||||||
if (offset_backup < 0)
|
if (offset_backup < 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (fseek(file, 0, SEEK_END) < 0
|
if (fseek(file, 0, SEEK_END) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
file_length = ftell(file);
|
file_length = ftell(file);
|
||||||
if (file_length < 0)
|
if (file_length < 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user