]> sourceware.org Git - systemtap.git/commitdiff
fix --vp NNN logic for #chars < 5
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 20 Nov 2008 19:52:02 +0000 (14:52 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 20 Nov 2008 19:52:39 +0000 (14:52 -0500)
ChangeLog
main.cxx

index 0cd00d9263efd14925388d327b3af096a9af00fd..d248018ccd86471e5a3e5dd5061e90629ccec9f1 100644 (file)
--- 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
index 93848dec28fd403a39c8872c78a7de15d2ddb5e7..406228ae86644191a2c995b9eee47669aa24776c 100644 (file)
--- 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
This page took 0.039113 seconds and 5 git commands to generate.