aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sigcomp.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames@darkjames.pl>2014-05-18 09:56:20 +0200
committerEvan Huus <eapache@gmail.com>2014-05-19 02:27:12 +0000
commitd7bd2ecf9fc2c627d236484cee8e77e84697da07 (patch)
tree61d077a4d18f23569dd3beb7596beb242962fe70 /epan/dissectors/packet-sigcomp.c
parente6d6183e1bee841fa65619ddd61329c7ea91b3f7 (diff)
Add new proto_tree_add_format_text() function
There are lot of text dissectors which want just to add escaped (not filtrable) text, add new function proto_tree_add_format_text() which just do this in optimized way. Change-Id: Ia0e189b620cc0a5b74cfdaef1ad4571d766bb2ab Reviewed-on: https://code.wireshark.org/review/1678 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r--epan/dissectors/packet-sigcomp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 831d7e4cf1..5753eeb119 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -2237,10 +2237,7 @@ tvb_raw_text_add(tvbuff_t *tvb, proto_tree *tree)
while (tvb_offset_exists(tvb, offset)) {
tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
linelen = next_offset - offset;
- if(raw_tree) {
- proto_tree_add_text(raw_tree, tvb, offset, linelen,
- "%s", tvb_format_text(tvb, offset, linelen));
- }
+ proto_tree_add_format_text(raw_tree, tvb, offset, linelen);
offset = next_offset;
}
}