summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cxx b/main.cxx
index 93848dec..406228ae 100644
--- a/main.cxx
+++ b/main.cxx
@@ -654,7 +654,7 @@ main (int argc, char * const argv [])
if (strlen(optarg) < 1 || strlen(optarg) > 5)
ok = false;
if (ok)
- for (unsigned i=0; i<5; i++)
+ for (unsigned i=0; i<strlen(optarg); i++)
if (isdigit (optarg[i]))
s.perpass_verbose[i] += optarg[i]-'0';
else