about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--malloc/malloc.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f95162e1f..cc41eece63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
 
+	* malloc/malloc.c: Undo all of today's changes.
+
 	* locale/programs/locale.c (show_info): Don't try to look into
 	data for LC_ALL (there is none).
 
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 93feb07ecd..f674f4ebfe 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3738,7 +3738,7 @@ Void_t* cALLOc(n, elem_size) size_t n; size_t elem_size;
   }
 #endif
 
-  MALLOC_ZERO(mem, sz);
+  MALLOC_ZERO(mem, csz - SIZE_SZ);
   return mem;
 }