* 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

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