mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +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:
parent
ac5940be9d
commit
65922d0bb2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126042
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue