1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Merge from RELENG_4 1.28.2.13: Fix saving system crash dumps larger than

2 GB by using fseeko() instead of fseek().
This commit is contained in:
Tim J. Robbins 2004-02-20 12:22:52 +00:00
parent ac5940be9d
commit 65922d0bb2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126042

View File

@ -422,7 +422,7 @@ DoFile(char *savedir, const char *device)
if (fwrite(buf + nw, hs - nw, 1, fp) != 1)
break;
if (he > hs)
if (fseek(fp, he - hs, SEEK_CUR) == -1)
if (fseeko(fp, he - hs, SEEK_CUR) == -1)
break;
}
}