aboutsummaryrefslogtreecommitdiff
path: root/miscutils/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/update.c')
-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)
52 52
53 argc--; 53 argc--;
54 argv++; 54 argv++;
55 while (**argv == '-') { 55 while (argc>0 && **argv == '-') {
56 while (*++(*argv)) { 56 while (*++(*argv)) {
57 switch (**argv) { 57 switch (**argv) {
58 case 'S': 58 case 'S':