From cec29a73f90cb232a4e796812a5368dc93de6a27 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 4 Sep 2007 11:24:41 +0000 Subject: [PATCH] Small fix to example program. --- man3/getopt.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/getopt.3 b/man3/getopt.3 index 41dbee6ae..bc147e3eb 100644 --- a/man3/getopt.3 +++ b/man3/getopt.3 @@ -357,7 +357,7 @@ main(int argc, char *argv[]) break; default: /* '?' */ fprintf(stderr, "Usage: %s [\-t nsecs] [\-n] name\\n", - argv[1]); + argv[0]); exit(EXIT_FAILURE); } }