From be36452872e47bdb69768456a095e69227719981 Mon Sep 17 00:00:00 2001 From: otto <> Date: Tue, 30 Jan 2018 17:46:41 +0000 Subject: [PATCH] keep in sync with ld.so malloc.c --- src/lib/libc/stdlib/malloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 663d0877..ebe032a7 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/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 * Copyright (c) 2012 Matthew Dempsky @@ -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;