diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-04-06 07:24:54 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-04-06 07:24:54 +0000 |
commit | 80751f777454d5a691100352d93572ceb28a0b86 (patch) | |
tree | 0202aa3c515584ee6799ab447c0f9974f83143b7 /usr.bin/sendbug | |
parent | 6b0096fa8cd214ebd47963815eca5df17a7fb9c0 (diff) |
argc does not include __progname after subtracting optind.
Diffstat (limited to 'usr.bin/sendbug')
-rw-r--r-- | usr.bin/sendbug/sendbug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index 4f476fdcb9f..6a1a555ba2c 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.36 2007/04/06 03:24:08 ray Exp $ */ +/* $OpenBSD: sendbug.c,v 1.37 2007/04/06 07:24:53 ray Exp $ */ /* * Written by Ray Lai <ray@cyth.net>. @@ -93,7 +93,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - if (argc > 1) + if (argc > 0) usage(); if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') |