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:
tjr 2004-02-20 12:22:52 +00:00
parent 39aa73fd6d
commit 7d791a5bef

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;
}
}