Improve error message for failed alloc

This commit is contained in:
Thomas Orozco 2015-02-28 18:19:15 -05:00
parent fa8200cc1c
commit cf95d8c824
1 changed files with 1 additions and 1 deletions

2
tini.c
View File

@ -84,7 +84,7 @@ int parse_args(const int argc, char* const argv[], char* (**child_args_ptr_ptr)[
*child_args_ptr_ptr = calloc(argc-optind+1, sizeof(char*));
if (*child_args_ptr_ptr == NULL) {
PRINT_FATAL("Failed to allocate memory for child_args_ptr_ptr: '%s'", strerror(errno));
PRINT_FATAL("Failed to allocate memory for child args: '%s'", strerror(errno));
return 1;
}