aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sametime.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-01-25 14:27:49 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2014-01-25 14:27:49 +0000
commit5a70a53e11e986f4ece825996293741a3f41b79f (patch)
tree5823bb1ea771f1a5258fd79b556d067d58e7703a /epan/dissectors/packet-sametime.c
parent4a32b10948fdfd141e95ca780f22343767aebaf3 (diff)
the sametime dissector stores the result of tvb_get_string() into hf
variables that can handle only 7bit ascii strings replace this with tvb_get_string_enc() svn path=/trunk/; revision=54959
Diffstat (limited to 'epan/dissectors/packet-sametime.c')
-rw-r--r--epan/dissectors/packet-sametime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sametime.c b/epan/dissectors/packet-sametime.c
index 944902342c..b5c6cce564 100644
--- a/epan/dissectors/packet-sametime.c
+++ b/epan/dissectors/packet-sametime.c
@@ -238,7 +238,8 @@ add_text_item(tvbuff_t *tvb, proto_tree *tree, int offset, int hf)
proto_tree_add_item(tree, hf_sametime_field_length, tvb, offset, 2, ENC_BIG_ENDIAN);
/* add string */
- proto_tree_add_string(tree, hf, tvb, offset + 2, length, tvb_get_string(wmem_packet_scope(), tvb, offset + 2, length));
+ proto_tree_add_string(tree, hf, tvb, offset + 2, length,
+ tvb_get_string_enc(wmem_packet_scope(), tvb, offset + 2, length, ENC_ASCII|ENC_NA));
}
return 2 + length;