summaryrefslogtreecommitdiffstats
path: root/grapher/StapParser.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
committerDave Brolley <brolley@redhat.com>2009-09-17 20:36:24 -0400
commit762684a57fa5420cc122b475f592545e8eeb29cd (patch)
treec1b55657f1aff31e7298d76852bbe8522a84db13 /grapher/StapParser.cxx
parent8afee8bbf045e858dae186d40653293c99dbbcdd (diff)
parent6bde4f381475cea055352d8ad5f60bb2f24de21d (diff)
downloadsystemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.gz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.tar.xz
systemtap-steved-762684a57fa5420cc122b475f592545e8eeb29cd.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'grapher/StapParser.cxx')
-rw-r--r--grapher/StapParser.cxx4
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;