aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbparse.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-09-11 17:41:13 -0400
committerMichael Mann <mmann78@netscape.net>2015-09-15 02:20:13 +0000
commit51360b538016523bb2d2670c7bcb51f127a757e7 (patch)
treef390e21736bbc9711a4e97cc9cd5c00ed34c1ec0 /epan/tvbparse.c
parentaebc99a49c325fa26040cd8bf4b8342a49b541e4 (diff)
Eliminate proto_tree_add_text from odds and ends.
A few calls in the epan directory and comments in the ui directory Change-Id: Ia8f8830ac6909ab94d3a03283bfd173456bc9718 Reviewed-on: https://code.wireshark.org/review/10492 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/tvbparse.c')
-rw-r--r--epan/tvbparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbparse.c b/epan/tvbparse.c
index 884fb08114..4f400597ff 100644
--- a/epan/tvbparse.c
+++ b/epan/tvbparse.c
@@ -1366,7 +1366,7 @@ void tvbparse_tree_add_elem(proto_tree* tree, tvbparse_elem_t* curr) {
frame->elem = curr;
while (curr) {
- pi = proto_tree_add_text(frame->tree,curr->tvb,curr->offset,curr->len,"%s",tvb_format_text(curr->tvb,curr->offset,curr->len));
+ pi = proto_tree_add_format_text(frame->tree,curr->tvb,curr->offset,curr->len);
if(curr->sub) {
frame->elem = curr;