summaryrefslogtreecommitdiffstats
path: root/sbin/savecore
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-02 09:09:04 +0000
committerphk <phk@FreeBSD.org>1996-05-02 09:09:04 +0000
commit8b3eb1da82e3ae0e16d346d9a46700eee1e1b045 (patch)
tree1be6b5c5ec804730a795dc9824cdbd079982bb33 /sbin/savecore
parent640ce8297ee3a6654ae8b470710802be0b01bf5f (diff)
downloadFreeBSD-src-8b3eb1da82e3ae0e16d346d9a46700eee1e1b045.zip
FreeBSD-src-8b3eb1da82e3ae0e16d346d9a46700eee1e1b045.tar.gz
NBPG -> getpagesize()
Diffstat (limited to 'sbin/savecore')
-rw-r--r--sbin/savecore/savecore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index df1928e..a9929a8 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -377,7 +377,7 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno));
Lseek(ifd, (off_t)dumplo, L_SET);
/* Copy the core file. */
- dumpsize *= NBPG;
+ dumpsize *= getpagesize();
syslog(LOG_NOTICE, "writing %score to %s",
compress ? "compressed " : "", path);
for (; dumpsize > 0; dumpsize -= nr) {
OpenPOWER on IntegriCloud