diff options
author | phk <phk@FreeBSD.org> | 1996-05-02 09:09:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-02 09:09:04 +0000 |
commit | 8b3eb1da82e3ae0e16d346d9a46700eee1e1b045 (patch) | |
tree | 1be6b5c5ec804730a795dc9824cdbd079982bb33 /sbin/savecore | |
parent | 640ce8297ee3a6654ae8b470710802be0b01bf5f (diff) | |
download | FreeBSD-src-8b3eb1da82e3ae0e16d346d9a46700eee1e1b045.zip FreeBSD-src-8b3eb1da82e3ae0e16d346d9a46700eee1e1b045.tar.gz |
NBPG -> getpagesize()
Diffstat (limited to 'sbin/savecore')
-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 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) { |