summaryrefslogtreecommitdiffstats
path: root/sbin/dset/dset.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dset/dset.c')
-rw-r--r--sbin/dset/dset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dset/dset.c b/sbin/dset/dset.c
index 81ca715..22145d8 100644
--- a/sbin/dset/dset.c
+++ b/sbin/dset/dset.c
@@ -165,7 +165,7 @@ main(ac, av)
for (sym = 0; sym <= N_TABLAST; sym++) {
if (verbose)
printf("\nTable: %s\n", nl[sym].n_name);
- pos = nl[sym].n_value + NBPG - entry;
+ pos = nl[sym].n_value + getpagesize() - entry;
pos1 = nlk[0].n_value;
OpenPOWER on IntegriCloud