aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-01-07 08:29:35 -0500
committerMichael Mann <mmann78@netscape.net>2015-01-07 18:05:35 +0000
commit9cfe67fde61fa16cdf433cb152b5b22949648c64 (patch)
tree5f61b4cf38f1c1d90f73d90092de65194be60adb /epan/dissectors/packet-coap.c
parent493f03b4200f96f45fadf3302b1d3bfb5a95b409 (diff)
tvb_bytes_to_ep_str_punct -> tvb_bytes_to_str_punct
Also change bytestring_to_str to match bytes_to_ep_str_punct functionality (limiting byte string size) Change-Id: Idb958c7f0c203d103629469302b81fa922714f7e Reviewed-on: https://code.wireshark.org/review/6369 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 0508a0ee25..e61f6708be 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -296,7 +296,7 @@ dissect_coap_opt_hex_string(tvbuff_t *tvb, proto_item *item, proto_tree *subtree
if (opt_length == 0)
str = nullstr;
else
- str = tvb_bytes_to_ep_str_punct(tvb, offset, opt_length, ' ');
+ str = tvb_bytes_to_str_punct(wmem_packet_scope(), tvb, offset, opt_length, ' ');
proto_tree_add_item(subtree, hf, tvb, offset, opt_length, ENC_NA);
@@ -846,7 +846,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
coap_token_str = NULL;
if (token_len > 0)
{
- coap_token_str = tvb_bytes_to_ep_str_punct(tvb, offset, token_len, ' ');
+ coap_token_str = tvb_bytes_to_str_punct(wmem_packet_scope(), tvb, offset, token_len, ' ');
proto_tree_add_item(coap_tree, hf_coap_token,
tvb, offset, token_len, ENC_NA);
offset += token_len;