summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-08-12 22:15:38 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-08-20 16:11:09 -0700
commit2d41d0d9a66305304652ab7487f8751716df5905 (patch)
treefa713c248dc1ea2ac39de11696d7970e855d6a60
parentce5d9358800c19a22708dcad8fa1eea3df41b89d (diff)
downloadweston-2d41d0d9a66305304652ab7487f8751716df5905.tar.gz
weston-2d41d0d9a66305304652ab7487f8751716df5905.tar.bz2
weston-2d41d0d9a66305304652ab7487f8751716df5905.zip
screenshooter: Add missing newline and use program_invocation_short_name
-rw-r--r--clients/screenshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/screenshot.c b/clients/screenshot.c
index 17e21829..0a6c8cce 100644
--- a/clients/screenshot.c
+++ b/clients/screenshot.c
@@ -268,8 +268,8 @@ int main(int argc, char *argv[])
if (getenv("WAYLAND_SOCKET") == NULL) {
fprintf(stderr, "%s must be launched by weston.\n"
- "Use the MOD+S shortcut to take a screenshot.",
- argv[0]);
+ "Use the MOD+S shortcut to take a screenshot.\n",
+ program_invocation_short_name);
return -1;
}