Don't overrun end of argv.

This commit is contained in:
mycroft 1993-04-20 09:07:41 +00:00
parent 10e418c8b6
commit 3f2c883b20
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
static char sccsid[] = "@(#)dumpmain.c 5.16 (Berkeley) 4/24/91";
static char rcsid[] = "$Header: /cvsroot/src/sbin/dump/Attic/dumpmain.c,v 1.3 1993/03/23 00:27:08 cgd Exp $";
static char rcsid[] = "$Header: /cvsroot/src/sbin/dump/Attic/dumpmain.c,v 1.4 1993/04/20 09:07:41 mycroft Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -100,7 +100,7 @@ main(argc, argv)
level = '0';
argv++;
argc -= 2;
for (cp = *argv++; *cp; cp++) {
for (cp = *argv++; cp && *cp; cp++) {
switch (*cp) {
case '-':
continue;