* libmisc/xmalloc.c: Harmonize message.
This commit is contained in:
parent
58baa7aa61
commit
f406d16b7b
@ -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>
|
2011-06-02 Peter Vrabec <pvrabec@redhat.com>
|
||||||
|
|
||||||
* libmisc/find_new_uid.c, libmisc/find_new_gid.c: Add missing
|
* libmisc/find_new_uid.c, libmisc/find_new_gid.c: Add missing
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#ident "$Id$"
|
#ident "$Id$"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "prototypes.h"
|
#include "prototypes.h"
|
||||||
|
|
||||||
@ -53,7 +54,9 @@
|
|||||||
|
|
||||||
ptr = (char *) malloc (size);
|
ptr = (char *) malloc (size);
|
||||||
if (NULL == ptr) {
|
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);
|
exit (13);
|
||||||
}
|
}
|
||||||
return ptr;
|
return ptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user