]> granicus.if.org Git - shadow/commitdiff
* libmisc/xmalloc.c: Harmonize message.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 2 Jun 2011 18:41:05 +0000 (18:41 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 2 Jun 2011 18:41:05 +0000 (18:41 +0000)
ChangeLog
libmisc/xmalloc.c

index fac8d359ba233f6fa000b7de9b51a873b51b1d2a..b7a3290aae854e5c541a4b5ae219e040515b4371 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-02  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/xmalloc.c: Harmonize message.
+
 2011-06-02  Peter Vrabec  <pvrabec@redhat.com>
 
        * libmisc/find_new_uid.c, libmisc/find_new_gid.c: Add missing
index 665de65cd8a2f50911149da9766d4d0d85f073f4..41a3343c9fd3c5bdbc4108bbdb4afbdefdc78da7 100644 (file)
@@ -44,6 +44,7 @@
 #ident "$Id$"
 
 #include <stdio.h>
+#include <errno.h>
 #include "defines.h"
 #include "prototypes.h"
 
@@ -53,7 +54,9 @@
 
        ptr = (char *) malloc (size);
        if (NULL == ptr) {
-               (void) fprintf (stderr, _("malloc(%d) failed\n"), (int) size);
+               (void) fprintf (stderr,
+                               _("%s: failed to allocate memory: %s\n"),
+                               Prog, strerror (errno));
                exit (13);
        }
        return ptr;