From 3ca59d39688c5af64025bf3854690c8b935e3d4a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 8 Aug 2013 17:13:47 +1000 Subject: [PATCH] clients: fix an error message _GNU_SOURCE is always true as of c228e23b055f54d29f2df, so program_invocation_short_name is available. --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 9ec97864..cbf8bf58 100644 --- a/clients/window.c +++ b/clients/window.c @@ -5330,7 +5330,7 @@ void * fail_on_null(void *p) { if (p == NULL) { - fprintf(stderr, "wayland-scanner: out of memory\n"); + fprintf(stderr, "%s: out of memory\n", program_invocation_short_name); exit(EXIT_FAILURE); }