diff options
author | Michael Mann <mmann78@netscape.net> | 2017-01-29 21:53:49 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-31 02:26:35 +0000 |
commit | d802b5b0ec8e10fbf64f6c76815b759323029bb4 (patch) | |
tree | 2071ff718141347ff02c8dc02aafb9090e8fc5e1 /epan/dissectors/packet-ansi_a.c | |
parent | 60a877167f05644a5a75676798084027accd1c3d (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-ansi_a.c')
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index bb5c62b1d6..28306c8523 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -3583,7 +3583,7 @@ elem_clg_party_ascii_num(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gu proto_tree_add_string_format(tree, hf_ansi_a_clg_party_ascii_num, tvb, curr_offset, len - (curr_offset - offset), (gchar *) poctets, "Digits: %s", - (gchar *) format_text(poctets, len - (curr_offset - offset))); + (gchar *) format_text_wmem(wmem_packet_scope(), poctets, len - (curr_offset - offset))); proto_item_append_text(data_p->elem_item, " - (%s)", poctets); @@ -5629,7 +5629,7 @@ elem_rev_ms_info_recs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint proto_tree_add_string_format(subtree, hf_ansi_a_cld_party_ascii_num, tvb, curr_offset, oct_len, (gchar *) poctets, "Digits: %s", - (gchar *) format_text(poctets, oct_len)); + (gchar *) format_text_wmem(wmem_packet_scope(), poctets, oct_len)); curr_offset += oct_len; break; @@ -6096,7 +6096,7 @@ elem_cld_party_ascii_num(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gu proto_tree_add_string_format(tree, hf_ansi_a_cld_party_ascii_num, tvb, curr_offset, len - (curr_offset - offset), (gchar *) poctets, "Digits: %s", - (gchar *) format_text(poctets, len - (curr_offset - offset))); + (gchar *) format_text_wmem(wmem_packet_scope(), poctets, len - (curr_offset - offset))); proto_item_append_text(data_p->elem_item, " - (%s)", poctets); |