diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-07 19:48:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-07 19:48:33 +0000 |
commit | 595d75109ba756edd6c1d04b1ed6054a34b94d0d (patch) | |
tree | afcb77c64dbd15439ceffce95267d0897e9aca4f /lib/libc/stdlib/getopt_long.c | |
parent | 73616ca407e72a16e7a681ad3110749fbf014961 (diff) |
Fix pasto in last commit.
Diffstat (limited to 'lib/libc/stdlib/getopt_long.c')
-rw-r--r-- | lib/libc/stdlib/getopt_long.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c index 7f6dc23c448..c4f09cb23e8 100644 --- a/lib/libc/stdlib/getopt_long.c +++ b/lib/libc/stdlib/getopt_long.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getopt_long.c,v 1.6 2002/12/07 19:15:59 millert Exp $ */ +/* $OpenBSD: getopt_long.c,v 1.7 2002/12/07 19:48:32 millert Exp $ */ /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ /* @@ -64,7 +64,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: getopt_long.c,v 1.6 2002/12/07 19:15:59 millert Exp $"; +static char *rcsid = "$OpenBSD: getopt_long.c,v 1.7 2002/12/07 19:48:32 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <err.h> @@ -408,7 +408,7 @@ start: short_too = 0; if (*place == '-') place++; /* --foo long option */ - else if (*place != ':' && strchr(options, optchar) != NULL) + else if (*place != ':' && strchr(options, *place) != NULL) short_too = 1; /* could be short option too */ optchar = parse_long_options(nargv, options, long_options, |