aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-28 22:10:34 +0000
committerErik Andersen <andersen@codepoet.org>2000-04-28 22:10:34 +0000
commit6ed02a0ee010a28b7649a9ef734679f7818c57e3 (patch)
tree7cb786c18876841a546f222f20e4b35e0bcf576a /miscutils
parentabc199eb0cc485e42107595ca2d877c7724aced0 (diff)
downloadbusybox-6ed02a0ee010a28b7649a9ef734679f7818c57e3.tar.gz
Fix stupid bugs. update was segfaulting. mknod minor # was always 0
due to a parsing bug. Oops. -Erik
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/update.c2
1 files changed, 1 insertions, 1 deletions
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':