diff options
author | fenner <fenner@FreeBSD.org> | 1996-11-18 19:37:52 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-11-18 19:37:52 +0000 |
commit | 3e3088cdcdbcdc346d50a3fd779e414897ed2cc6 (patch) | |
tree | 00cbd52835655ed9291175e5c9c9e9207efe7a09 /usr.bin/kdump | |
parent | 998611f369590e64db3712e66fff07b6c537ce74 (diff) | |
download | FreeBSD-src-3e3088cdcdbcdc346d50a3fd779e414897ed2cc6.zip FreeBSD-src-3e3088cdcdbcdc346d50a3fd779e414897ed2cc6.tar.gz |
Fix arg parsing. kdump used to allow a single argument, which it
silently ignored.
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r-- | usr.bin/kdump/kdump.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index da2d48b..4aeddb9 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -112,10 +112,8 @@ main(argc, argv) default: usage(); } - argv += optind; - argc -= optind; - if (argc > 1) + if (argc > optind) usage(); m = (void *)malloc(size = 1025); |