diff options
author | peter <peter@FreeBSD.org> | 2001-10-05 03:06:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-10-05 03:06:35 +0000 |
commit | 8f8b6ce1a13e3f2501d726c1f0c7b3495ca5e9d5 (patch) | |
tree | 7b6fcfda1edbc2c7f3d8bc37b63e2eb744b45225 /sbin/savecore/savecore.c | |
parent | be3ae37c00fd95eacdb303d26fb9d75fa2b9e3c7 (diff) | |
download | FreeBSD-src-8f8b6ce1a13e3f2501d726c1f0c7b3495ca5e9d5.zip FreeBSD-src-8f8b6ce1a13e3f2501d726c1f0c7b3495ca5e9d5.tar.gz |
Argh. Fix another >2GB savecore problem.
Reported by: mki@mozone.net
Diffstat (limited to 'sbin/savecore/savecore.c')
-rw-r--r-- | sbin/savecore/savecore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 5c6bdb5..60b049d 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -604,7 +604,7 @@ get_dumpsize() /* Read the dump size. */ DumpRead(dumpfd, &kdumpsize, sizeof(kdumpsize), (off_t)(dumplo + ok(dump_nl[X_DUMPSIZE].n_value)), L_SET); - dumpsize = kdumpsize * getpagesize(); + dumpsize = (off_t)kdumpsize * getpagesize(); } /* |