aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-fileexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-dcerpc-fileexp.c')
-rw-r--r--epan/dissectors/packet-dcerpc-fileexp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dcerpc-fileexp.c b/epan/dissectors/packet-dcerpc-fileexp.c
index 56dc75ec52..5f0494c537 100644
--- a/epan/dissectors/packet-dcerpc-fileexp.c
+++ b/epan/dissectors/packet-dcerpc-fileexp.c
@@ -580,7 +580,7 @@ typedef [string] byte NameString_t[AFS_NAMEMAX];
if (string_size < AFS_NAMEMAX)
{
proto_tree_add_item (tree, hf_fileexp_afsNameString_t_principalName_string, tvb, offset, string_size, ENC_ASCII|ENC_NA);
- namestring = tvb_get_string (wmem_packet_scope(), tvb, offset, string_size);
+ namestring = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, string_size, ENC_ASCII);
offset += string_size;
col_append_fstr (pinfo->cinfo, COL_INFO, " Principal:%s", namestring);
}
@@ -755,7 +755,7 @@ dissect_afsTaggedPath (tvbuff_t * tvb, int offset,
hf_fileexp_afsTaggedPath_tp_length, &tp_length);
proto_tree_add_item (tree, hf_fileexp_afsTaggedPath_tp_chars, tvb, offset,
tp_length, ENC_ASCII|ENC_NA);
- tp_chars = tvb_get_string (wmem_packet_scope(), tvb, offset, 1025);
+ tp_chars = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, 1025, ENC_ASCII);
offset += 1025;
col_append_fstr (pinfo->cinfo, COL_INFO, " :tp_chars %s", tp_chars);
@@ -1312,7 +1312,7 @@ dissect_afstaggedname (tvbuff_t * tvb, int offset,
{
proto_tree_add_item (tree, hf_fileexp_tn_string, tvb, offset,
tn_length, ENC_ASCII|ENC_NA);
- tn_string = tvb_get_string (wmem_packet_scope(), tvb, offset, 257);
+ tn_string = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, 257, ENC_ASCII);
offset += 257;
col_append_fstr (pinfo->cinfo, COL_INFO, " :tn_tag: %s", tn_string);
}