--- getopt/trunk/xalloc.h 2012/07/17 15:27:08 322 +++ getopt/trunk/xalloc.h 2012/07/17 17:09:37 323 @@ -22,7 +22,7 @@ void *ret = malloc(size); if (!ret && size) { - fprintf(stderr, "Error: cannot allocate %zu bytes", size); + fprintf(stderr, "%s: error: cannot allocate %zu bytes", program_invocation_short_name, size); exit(XALLOC_EXIT_CODE); } return ret; @@ -33,7 +33,7 @@ void *ret = realloc(ptr, size); if (!ret && size) - fprintf(stderr, "Error: cannot allocate %zu bytes", size); + fprintf(stderr, "%s: Error: cannot allocate %zu bytes", program_invocation_short_name, size); return ret; }