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
39aa73fd6d
commit
7d791a5bef
@ -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 New Issue
Block a user