diff options
author | Tim Moore <timoore@redhat.com> | 2009-07-28 12:59:52 +0200 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-09-16 20:09:32 +0200 |
commit | 688a8322340c2d7738472270a455fbfe5587a2d2 (patch) | |
tree | a0fd24255917ac7ecc64255cbebe6b5e71a68c37 /grapher/StapParser.cxx | |
parent | 14eb23b75be2e9ebc2cdda842e6e787b3e50efd5 (diff) | |
download | systemtap-steved-688a8322340c2d7738472270a455fbfe5587a2d2.tar.gz systemtap-steved-688a8322340c2d7738472270a455fbfe5587a2d2.tar.xz systemtap-steved-688a8322340c2d7738472270a455fbfe5587a2d2.zip |
Fix graph attribute parsing buglet
* grapher/StapParser.cxx (findTaggedValue): Extract value substring
after tag.
Diffstat (limited to 'grapher/StapParser.cxx')
-rw-r--r-- | grapher/StapParser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/StapParser.cxx b/grapher/StapParser.cxx index d70c75b6..47dfbe30 100644 --- a/grapher/StapParser.cxx +++ b/grapher/StapParser.cxx @@ -58,7 +58,7 @@ vector<string> commaSplit(const string& inStr, size_t pos = 0) { size_t found; if ((found = src.find(tag)) != string::npos) - result = src.substr(strlen(tag)); + result = src.substr(found + strlen(tag)); return found; } @@ -152,7 +152,7 @@ vector<string> commaSplit(const string& inStr, size_t pos = 0) shared_ptr<GraphDataBase> gdata = itr->second; string decl; // Hack: scan from the beginning of dataString again - if (findTaggedValue(dataString, "%Title", decl) + if (findTaggedValue(dataString, "%Title:", decl) != string::npos) { gdata->title = decl; |