diff options
author | Dario Lombardo <lomato@gmail.com> | 2014-06-17 17:30:58 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-06-18 14:13:58 +0000 |
commit | 971ffd683ea23362bd8009567ff7860371e6e2cc (patch) | |
tree | 28c9ada98d2e59b196fc839d39ab2448fd436968 /epan/dissectors/packet-coap.c | |
parent | 421d817d70737ebd459b7027274bf38bb2d9a2ff (diff) |
Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc
Change-Id: I63a3704effe3fcab01a193dc39b6a22e9f1cf3fe
Reviewed-on: https://code.wireshark.org/review/2376
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r-- | epan/dissectors/packet-coap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c index 359b2fe599..54eef9e5a7 100644 --- a/epan/dissectors/packet-coap.c +++ b/epan/dissectors/packet-coap.c @@ -331,7 +331,7 @@ dissect_coap_opt_uri_host(tvbuff_t *tvb, proto_item *head_item, proto_tree *subt { guint8 *str; - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); proto_tree_add_string(subtree, hf_coap_opt_uri_host, tvb, offset, opt_length, str); @@ -362,7 +362,7 @@ dissect_coap_opt_uri_path(tvbuff_t *tvb, proto_item *head_item, proto_tree *subt if (opt_length == 0) { str = nullstr; } else { - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); g_strlcat(coap_uri_str, str, sizeof(coap_uri_str)); } @@ -385,7 +385,7 @@ dissect_coap_opt_uri_query(tvbuff_t *tvb, proto_item *head_item,proto_tree *subt if (opt_length == 0) { str = nullstr; } else { - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); g_strlcat(coap_uri_str, str, sizeof(coap_uri_str)); } @@ -403,7 +403,7 @@ dissect_coap_opt_location_path(tvbuff_t *tvb, proto_item *head_item, proto_tree if (opt_length == 0) { str = nullstr; } else { - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); } proto_tree_add_string(subtree, hf_coap_opt_location_path, tvb, offset, opt_length, str); @@ -420,7 +420,7 @@ dissect_coap_opt_location_query(tvbuff_t *tvb, proto_item *head_item, proto_tree if (opt_length == 0) { str = nullstr; } else { - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); } proto_tree_add_string(subtree, hf_coap_opt_location_query, tvb, offset, opt_length, str); @@ -437,7 +437,7 @@ dissect_coap_opt_proxy_uri(tvbuff_t *tvb, proto_item *head_item, proto_tree *sub if (opt_length == 0) { str = nullstr; } else { - str = tvb_get_string(wmem_packet_scope(), tvb, offset, opt_length); + str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, opt_length, ENC_ASCII); } proto_tree_add_string(subtree, hf_coap_opt_proxy_uri, tvb, offset, opt_length, str); |