[BZ #786]
authorUlrich Drepper <drepper@redhat.com>
Tue, 27 Sep 2005 01:55:24 +0000 (01:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 27 Sep 2005 01:55:24 +0000 (01:55 +0000)
* malloc/malloc.c (_int_realloc): Make error message clearer.

ChangeLog
malloc/malloc.c

index bafd427..f6a34bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-09-26  Ulrich Drepper  <drepper@redhat.com>
 
+       [BZ #786]
+       * malloc/malloc.c (_int_realloc): Make error message clearer.
+
        [BZ #713]
        * libio/iofgets.c: Treat N==1 correctly.
        * libio/iofgets_u.c: Likewise.
index 64050b4..594d9c4 100644 (file)
@@ -4618,7 +4618,7 @@ _int_realloc(mstate av, Void_t* oldmem, size_t bytes)
   if (__builtin_expect (oldp->size <= 2 * SIZE_SZ, 0)
       || __builtin_expect (oldsize >= av->system_mem, 0))
     {
-      errstr = "realloc(): invalid size";
+      errstr = "realloc(): invalid old size";
       goto errout;
     }