summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-04-08 12:36:37 -0400
committerStan Cox <scox@redhat.com>2009-04-08 12:36:37 -0400
commit0b113a7a70d617c5e67807c9a897b196db4b3b7a (patch)
tree1a3ccf48f928cb96074f828f18039c869f3ecaf2 /tapsets.cxx
parent3dd58c2ac312fc16aa38124987081adbd6697629 (diff)
downloadsystemtap-steved-0b113a7a70d617c5e67807c9a897b196db4b3b7a.tar.gz
systemtap-steved-0b113a7a70d617c5e67807c9a897b196db4b3b7a.tar.xz
systemtap-steved-0b113a7a70d617c5e67807c9a897b196db4b3b7a.zip
Do not do a partial name comparison for .label.
* tapsets.cxx (dwflpp::iterate_over_cu_labels): Compare with strcmp not strncmp.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 04402a27..b12d7711 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1369,7 +1369,7 @@ struct dwflpp
function_name = name;
}
else if (tag == DW_TAG_label && name != 0
- && ((strncmp(name, sym, strlen(sym)) == 0)
+ && ((strcmp(name, sym) == 0)
|| (name_has_wildcard (sym)
&& function_name_matches_pattern (name, sym))))
{