Fix arg parsing. kdump used to allow a single argument, which it

silently ignored.
This commit is contained in:
Bill Fenner 1996-11-18 19:37:52 +00:00
parent 766631018f
commit 80844fd18a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19853

View File

@ -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);