summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--main.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cd00d92..d248018c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-20 Frank Ch. Eigler <fche@elastic.org>
+
+ * main.cxx (main): Correct thinko in --vp option with <5 arg chars.
+
2008-11-18 Jim Keniston <jkenisto@us.ibm.com>
PR 6879
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