From 335e0e3592c446ebbb72a9d07261800c817949a7 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 4 Mar 2002 00:55:25 +0000 Subject: [PATCH] merge from gcc --- libiberty/ChangeLog | 4 ++++ libiberty/xmalloc.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index e46c71128e..04250b718d 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2002-03-03 Neil Booth + + * xmalloc.c (xmalloc_fail): Clarify error message. + 2002-02-21 Jim Blandy * splay-tree.c (splay_tree_xmalloc_allocate, diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c index bf0cf2d6ed..433fd5ce3f 100644 --- a/libiberty/xmalloc.c +++ b/libiberty/xmalloc.c @@ -120,12 +120,12 @@ xmalloc_failed (size) else allocated = (char *) sbrk (0) - (char *) &environ; fprintf (stderr, - "\n%s%sCannot allocate %lu bytes after allocating %lu bytes\n", + "\n%s%sout of memory allocating %lu bytes after allocating %lu bytes\n", name, *name ? ": " : "", (unsigned long) size, (unsigned long) allocated); #else /* HAVE_SBRK */ fprintf (stderr, - "\n%s%sCannot allocate %lu bytes\n", + "\n%s%sout of memory allocating %lu bytes\n", name, *name ? ": " : "", (unsigned long) size); #endif /* HAVE_SBRK */ -- 2.11.0