From: Antonio Ospite Date: Wed, 20 Jan 2010 11:59:55 +0000 (+0100) Subject: Print the correct program name in usage info. X-Git-Url: https://git.ao2.it/xicursorset.git/commitdiff_plain/e88fc7913706d39f0fcdb5e2ca4cf754944b3e35?ds=sidebyside;hp=a2fd2034bfc16e99c2cdd2937f85c72f49af4ab2 Print the correct program name in usage info. --- diff --git a/xicursorset.c b/xicursorset.c index 92c90fd..e66644b 100644 --- a/xicursorset.c +++ b/xicursorset.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -38,7 +39,8 @@ int main(int argc, char *argv[]) Cursor cursor; if (argc < 3 || argc > 4) { - printf("usage: xicursor []\n"); + printf("usage: %s []\n", + basename(argv[0])); return 1; }