diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-01-22 04:50:23 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-01-22 04:50:23 +0000 |
commit | 9ec41e3db28749d047f80794777de366b88a7dfa (patch) | |
tree | e3b64d859878c28d2d09ddfdd592b601e4fb373c /asn1/sabp | |
parent | d85bca8969cac6a46b64e18072898bc5ac2c89da (diff) | |
download | wireshark-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.c | 2 |
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); } } |