summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-07-31 02:09:57 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-07-31 02:09:57 +0000
commitdef04f26ab3c9c17d0b4b4dacf83008d265625a7 (patch)
tree71e607f16e98ea14ba64e369b14f0544748921de /libc
parent4d7b95f7d2ddf5f4901a871178c59b55ab042551 (diff)
Use MALLOC_HEADER_SIZE.
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/malloc/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index 0e0c9ab57..54e68a5f3 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -41,7 +41,7 @@ malloc (size_t size)
MALLOC_DEBUG ("malloc: %d bytes\n", size);
/* Include extra space to record the size of the allocated block. */
- size += MALLOC_ROUND_UP (sizeof (size_t), MALLOC_ALIGNMENT);
+ size += MALLOC_HEADER_SIZE;
__malloc_lock ();