aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptpip.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-12-08 20:03:15 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-12-08 20:03:15 +0000
commit93398e794e9afb2e304d27d86287db3054724755 (patch)
treeb28073e4314ca33a4058bfd392df1642576a1f40 /epan/dissectors/packet-ptpip.c
parent2dd25c2c482e573a26db19db995dd171c7667cea (diff)
Use STR_UNICODE display instead of proto_tree_add_unicode_string() in the remaining dissectors
svn path=/trunk/; revision=53867
Diffstat (limited to 'epan/dissectors/packet-ptpip.c')
-rw-r--r--epan/dissectors/packet-ptpip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ptpip.c b/epan/dissectors/packet-ptpip.c
index 71f4065e3c..ce654bc8aa 100644
--- a/epan/dissectors/packet-ptpip.c
+++ b/epan/dissectors/packet-ptpip.c
@@ -866,7 +866,7 @@ void dissect_ptpIP_unicode_name(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
nameLen = tvb_unicode_strsize(tvb, *offset);
name = tvb_get_unicode_string(wmem_packet_scope(), tvb, *offset, nameLen, ENC_LITTLE_ENDIAN);
- proto_tree_add_unicode_string(tree, hf_ptpIP_name, tvb, *offset, nameLen, name);
+ proto_tree_add_string(tree, hf_ptpIP_name, tvb, *offset, nameLen, name);
*offset += nameLen;
col_append_fstr(
pinfo->cinfo,
@@ -925,7 +925,7 @@ void proto_register_ptpip( void )
"GUID", "ptpip.guid", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
{ &hf_ptpIP_name, {
- "Host Name", "ptpip.name", FT_STRINGZ, BASE_NONE,
+ "Host Name", "ptpip.name", FT_STRINGZ, STR_UNICODE,
NULL, 0, NULL, HFILL }},
{ &hf_ptpIP_version, {
"Version", "ptpip.version", FT_STRING, BASE_NONE,