diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-20 11:20:53 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-20 11:20:53 +0000 |
commit | 3f4471f875a224689142ba97487c560906d26973 (patch) | |
tree | bfbad4ffd8fbedb162227d668781d2cf11c7aca0 /usr.bin | |
parent | ee7a7403897308146fd4ecd0f6b65d7280913927 (diff) |
Fix array overflow in command line handling
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/telnet/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/main.c b/usr.bin/telnet/main.c index 1c202d0ebce..4843ec7ae59 100644 --- a/usr.bin/telnet/main.c +++ b/usr.bin/telnet/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.28 2014/07/20 10:32:23 jsg Exp $ */ +/* $OpenBSD: main.c,v 1.29 2014/07/20 11:20:52 guenther Exp $ */ /* $NetBSD: main.c,v 1.5 1996/02/28 21:04:05 thorpej Exp $ */ /* @@ -175,7 +175,7 @@ main(argc, argv) argv += optind; if (argc) { - char *args[7], **argp = args; + char *args[8], **argp = args; if (argc > 2) usage(); |