reword the malloc failure message
This commit is contained in:
parent
bc008c3f39
commit
468d99326c
|
@ -45,7 +45,7 @@ static void* xmalloc(size_t n)
|
||||||
void* tmp;
|
void* tmp;
|
||||||
tmp = malloc(n);
|
tmp = malloc(n);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
fprintf(stderr, "You are about to die\n");
|
fprintf(stderr, "Failed to allocate memory for the test payload.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
return tmp;
|
return tmp;
|
||||||
|
|
Loading…
Reference in New Issue