From 7d791a5befc9233a68e23307b7d9e87acc9f87a0 Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 20 Feb 2004 12:22:52 +0000 Subject: [PATCH] Merge from RELENG_4 1.28.2.13: Fix saving system crash dumps larger than 2 GB by using fseeko() instead of fseek(). --- sbin/savecore/savecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index c7e8a1572927..7258a45d93ed 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -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; } }