1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 19:57:36 +00:00

FIO: Fix large file support on Linux AND Android platforms correctly

As discussed in #564
This commit is contained in:
Mark Pizzolato
2018-05-15 06:50:27 -07:00
parent caee890727
commit 13b4f6563f
2 changed files with 2 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ t_offset pos, sz;
if (fp == NULL)
return 0;
pos = sim_ftell (fp);
sim_fseek (fp, 0, SEEK_END);
sim_fseeko (fp, 0, SEEK_END);
sz = sim_ftell (fp);
sim_fseeko (fp, pos, SEEK_SET);
return sz;