clients: fix an error message
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 8 Aug 2013 07:13:47 +0000 (17:13 +1000)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Aug 2013 20:46:14 +0000 (13:46 -0700)
_GNU_SOURCE is always true as of c228e23b055f54d29f2df, so
program_invocation_short_name is available.

clients/window.c

index 9ec9786..cbf8bf5 100644 (file)
@@ -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);
        }