mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
Fix arg parsing. kdump used to allow a single argument, which it
silently ignored.
This commit is contained in:
parent
766631018f
commit
80844fd18a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19853
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user