diff options
-rw-r--r-- | com32/lib/realloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/realloc.c b/com32/lib/realloc.c index 577c2001..67a27834 100644 --- a/com32/lib/realloc.c +++ b/com32/lib/realloc.c @@ -24,7 +24,7 @@ void *realloc(void *ptr, size_t size) } /* Add the obligatory arena header, and round up */ - size = (size+2*sizeof(struct arena_header)-1) & ARENA_SIZE_MASK; + size = (size+2*sizeof(struct arena_header)-1) & ~ARENA_SIZE_MASK; ah = (struct free_arena_header *) ((struct arena_header *)ptr - 1); |