diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | main.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 @@ -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 |