From: deraadt Date: Tue, 10 Dec 1996 15:42:38 +0000 (+0000) Subject: used to permit a single arg, which it ignored, now does usage(); fenner@freebsd X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf23be60321bb7fbdcd21c309582f9e48ea1fcf8;p=openbsd used to permit a single arg, which it ignored, now does usage(); fenner@freebsd --- diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index fcab56840ed..35c429586a3 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.4 1996/06/26 05:34:43 deraadt Exp $ */ +/* $OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static char *rcsid = "$OpenBSD: kdump.c,v 1.4 1996/06/26 05:34:43 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $"; #endif /* not lint */ #include @@ -167,10 +167,7 @@ main(argc, argv) default: usage(); } - argv += optind; - argc -= optind; - - if (argc > 1) + if (argc > optind) usage(); m = (void *)malloc(size = 1025);