summaryrefslogtreecommitdiff
path: root/plugins/unistim/packet-unistim.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/unistim/packet-unistim.c')
-rw-r--r--plugins/unistim/packet-unistim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/unistim/packet-unistim.c b/plugins/unistim/packet-unistim.c
index 7858f78ee4..a93fff9657 100644
--- a/plugins/unistim/packet-unistim.c
+++ b/plugins/unistim/packet-unistim.c
@@ -1048,8 +1048,8 @@ dissect_display_switch(proto_tree *msg_tree,
}
if(msg_len>0){
/* I'm guessing this will work flakily at best */
- uinfo->string_data = tvb_get_string(wmem_packet_scope(), tvb,offset,msg_len);
- proto_tree_add_item(msg_tree,hf_generic_string,tvb,offset,msg_len,ENC_ASCII|ENC_NA);
+ uinfo->string_data = tvb_get_string_enc(wmem_packet_scope(), tvb,offset,msg_len,ENC_ASCII);
+ proto_tree_add_string(msg_tree,hf_generic_string,tvb,offset,msg_len,uinfo->string_data);
}
offset+=msg_len;