diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mapalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapalloc.c b/src/mapalloc.c index 00af064..69e87fe 100644 --- a/src/mapalloc.c +++ b/src/mapalloc.c @@ -70,7 +70,7 @@ void *map_malloc(size_t n) } mprotect(ptr, PAGESIZE, PROT_NONE); - mprotect((char*)ptr + alloc - (2 * PAGESIZE), PAGESIZE, PROT_NONE); + mprotect((char*)ptr + alloc - PAGESIZE, PAGESIZE, PROT_NONE); /* struct bucket *b = get_bucket(ptr); |