aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sigcomp.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-01-29 21:53:49 -0500
committerMichael Mann <mmann78@netscape.net>2017-01-31 02:26:35 +0000
commitd802b5b0ec8e10fbf64f6c76815b759323029bb4 (patch)
tree2071ff718141347ff02c8dc02aafb9090e8fc5e1 /epan/dissectors/packet-sigcomp.c
parent60a877167f05644a5a75676798084027accd1c3d (diff)
Add format_text_wmem.
This allows for a wmem_allocator for users of format_text who want it (dissectors for wmem_packet_scope()). This lessens the role of current format_text functionality in hopes that it will eventually be replaced. Change-Id: I970557a65e32aa79634a3fcc654ab641b871178e Reviewed-on: https://code.wireshark.org/review/19855 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r--epan/dissectors/packet-sigcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index 321f17ba1d..68a267302b 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -4105,7 +4105,7 @@ execute_next_instruction:
if (print_level_3 ) {
proto_tree_add_uint_format(udvm_tree, hf_sigcomp_state_value, bytecode_tvb, 0, 0, buff[k],
" Addr: %5u State value: %u (0x%x) ASCII(%s)",
- k,buff[k],buff[k],format_text(string, 1));
+ k,buff[k],buff[k],format_text_wmem(wmem_packet_scope(), string, 1));
}
k = ( k + 1 ) & 0xffff;
n++;
@@ -4226,7 +4226,7 @@ execute_next_instruction:
if (print_level_3 ) {
proto_tree_add_uint_format(udvm_tree, hf_sigcomp_output_value, bytecode_tvb, 0, -1, buff[k],
" Output value: %u (0x%x) ASCII(%s) from Addr: %u ,output to dispatcher position %u",
- buff[k],buff[k],format_text(string,1), k,output_address);
+ buff[k],buff[k],format_text_wmem(wmem_packet_scope(), string,1), k,output_address);
}
k = ( k + 1 ) & 0xffff;
output_address ++;