summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2018-01-30 17:46:42 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2018-01-30 17:46:42 +0000
commit5ec0ca91fa61e25ac6958d1d8f0f2180abf0855e (patch)
tree4de30e6b8f6e3f88305d5fded40bd5394e1802af /lib
parentf32c2cec5a8e762cd7b38682cc16277de6ffbd87 (diff)
keep in sync with ld.so malloc.c
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/malloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index 663d0877ae6..ebe032a7839 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.c,v 1.243 2018/01/28 13:41:48 otto Exp $ */
+/* $OpenBSD: malloc.c,v 1.244 2018/01/30 17:46:41 otto Exp $ */
/*
* Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@@ -882,7 +882,8 @@ omalloc_make_chunks(struct dir_info *d, int bits, int listnum)
goto err;
bp->page = pp;
- if (insert(d, (void *)((uintptr_t)pp | bits + 1), (uintptr_t)bp, NULL))
+ if (insert(d, (void *)((uintptr_t)pp | (bits + 1)), (uintptr_t)bp,
+ NULL))
goto err;
LIST_INSERT_HEAD(&d->chunk_dir[bits][listnum], bp, entries);
return bp;