summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2014-05-10 18:14:55 +0000
committerotto <otto@openbsd.org>2014-05-10 18:14:55 +0000
commit2b3e6975bc1494424101aaa36b29b6bf177c82d4 (patch)
tree7efedda076b1ad7aa6d2ddf8282514462def4b81 /lib/libc/stdlib
parentAllow nginx to chroot to a directory other than /var/www (diff)
downloadwireguard-openbsd-2b3e6975bc1494424101aaa36b29b6bf177c82d4.tar.xz
wireguard-openbsd-2b3e6975bc1494424101aaa36b29b6bf177c82d4.zip
fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index a015fa229b5..361294eb511 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.161 2014/05/08 21:43:49 deraadt Exp $ */
+/* $OpenBSD: malloc.c,v 1.162 2014/05/10 18:14:55 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -1782,7 +1782,7 @@ malloc_dump(int fd)
struct region_info *r;
int saved_errno = errno;
- for (i = 0; i <= MALLOC_DELAYED_CHUNKS; i++) {
+ for (i = 0; i < MALLOC_DELAYED_CHUNK_MASK + 1; i++) {
p = g_pool->delayed_chunks[i];
if (p == NULL)
continue;