* libmisc/xmalloc.c: Harmonize message.

This commit is contained in:
nekral-guest 2011-06-02 18:41:05 +00:00
parent 58baa7aa61
commit f406d16b7b
2 changed files with 8 additions and 1 deletions

View File

@ -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

View 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;