summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2011-04-23 01:01:34 +0000
committertedu <tedu@openbsd.org>2011-04-23 01:01:34 +0000
commit2f0339a4627ef4daba9d11fe45b768b7753854ef (patch)
treefd9f33ea8593e712c54a81c19a26b34f2de421db
parentTurning on SCSIDEBUG (for debugging other drivers, of course) should (diff)
downloadwireguard-openbsd-2f0339a4627ef4daba9d11fe45b768b7753854ef.tar.xz
wireguard-openbsd-2f0339a4627ef4daba9d11fe45b768b7753854ef.zip
BRKSIZ is the right constant now, so I don't get lots of teeny tiny heaps
mixed up in my address space.
-rw-r--r--usr.sbin/procmap/procmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/procmap/procmap.c b/usr.sbin/procmap/procmap.c
index 3de09fe1a9e..ba077bc9e14 100644
--- a/usr.sbin/procmap/procmap.c
+++ b/usr.sbin/procmap/procmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procmap.c,v 1.37 2011/04/10 03:20:59 guenther Exp $ */
+/* $OpenBSD: procmap.c,v 1.38 2011/04/23 01:01:34 tedu Exp $ */
/* $NetBSD: pmap.c,v 1.1 2002/09/01 20:32:44 atatat Exp $ */
/*
@@ -828,7 +828,7 @@ findname(kvm_t *kd, struct kbit *vmspace,
(caddr_t)vme->end) {
name = " [ stack ]";
} else if (D(vmspace, vmspace)->vm_daddr <= (caddr_t)vme->start &&
- D(vmspace, vmspace)->vm_daddr + MAXDSIZ >= (caddr_t)vme->end &&
+ D(vmspace, vmspace)->vm_daddr + BRKSIZ >= (caddr_t)vme->end &&
D(vmspace, vmspace)->vm_dsize * getpagesize() / 2 <
(vme->end - vme->start)) {
name = " [ heap ]";