From 6ed02a0ee010a28b7649a9ef734679f7818c57e3 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 28 Apr 2000 22:10:34 +0000 Subject: Fix stupid bugs. update was segfaulting. mknod minor # was always 0 due to a parsing bug. Oops. -Erik --- miscutils/update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/update.c b/miscutils/update.c index 1e3e032fd..18b13e8c9 100644 --- a/miscutils/update.c +++ b/miscutils/update.c @@ -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': -- cgit v1.2.3