From 80844fd18aa9c8e0196c72ea8b1fc4f50e352152 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Mon, 18 Nov 1996 19:37:52 +0000 Subject: [PATCH] Fix arg parsing. kdump used to allow a single argument, which it silently ignored. --- usr.bin/kdump/kdump.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index da2d48bb4031..4aeddb92e2c6 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);