Fix stupid bugs. update was segfaulting. mknod minor # was always 0

due to a parsing bug.  Oops.
 -Erik
This commit is contained in:
Erik Andersen
2000-04-28 22:10:34 +00:00
parent abc199eb0c
commit 6ed02a0ee0
5 changed files with 8 additions and 4 deletions

View File

@ -52,7 +52,7 @@ extern int update_main(int argc, char **argv)
argc--;
argv++;
while (**argv == '-') {
while (argc>0 && **argv == '-') {
while (*++(*argv)) {
switch (**argv) {
case 'S':