summaryrefslogtreecommitdiff
path: root/asn1/sabp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-01-22 04:50:23 +0000
committerGuy Harris <guy@alum.mit.edu>2014-01-22 04:50:23 +0000
commit9ec41e3db28749d047f80794777de366b88a7dfa (patch)
treee3b64d859878c28d2d09ddfdd592b601e4fb373c /asn1/sabp
parentd85bca8969cac6a46b64e18072898bc5ac2c89da (diff)
downloadwireshark-9ec41e3db28749d047f80794777de366b88a7dfa.tar.gz
The stuff you get from dissect_cbs_data() is UTF-8 encoded; treat it as
such. Replace proto_tree_add_string(..., tvb_get_string_enc(same ..., ENC_xxx)) with proto_tree_add_item(..., ENC_xxx). svn path=/trunk/; revision=54895
Diffstat (limited to 'asn1/sabp')
-rw-r--r--asn1/sabp/packet-sabp-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/sabp/packet-sabp-template.c b/asn1/sabp/packet-sabp-template.c
index 59c09ed0d3..a1a3cf7857 100644
--- a/asn1/sabp/packet-sabp-template.c
+++ b/asn1/sabp/packet-sabp-template.c
@@ -158,7 +158,7 @@ dissect_sabp_cb_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (unpacked_tvb != NULL){
if (tree != NULL){
proto_tree *cbs_page_subtree = proto_item_add_subtree(cbs_page_item, ett_sabp_cbs_page_content);
- proto_tree_add_string(cbs_page_subtree, hf_sabp_cbs_page_content, unpacked_tvb, 0, len, tvb_get_string(wmem_packet_scope(), unpacked_tvb, 0, len));
+ proto_tree_add_item(cbs_page_subtree, hf_sabp_cbs_page_content, unpacked_tvb, 0, len, ENC_UTF_8|ENC_NA);
}
}