aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ethercat/packet-ams.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-15 19:58:31 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-15 19:58:31 +0000
commit782cc6e3c31c2f3d1c4ec9771e7c323995d5c6fa (patch)
tree7016f1b411bc1cfb2d0cd29d1b972b6f9da5a35c /plugins/ethercat/packet-ams.c
parent31abdcb584ed48002b54db6a6661e67a6b1b59e6 (diff)
Convert plugin files proto_tree_add_item() 'encoding' arg for field types FT_STRING, FT_STRINGZ, FT_UINT_STRING as follows:
1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). svn path=/trunk/; revision=39429
Diffstat (limited to 'plugins/ethercat/packet-ams.c')
-rw-r--r--plugins/ethercat/packet-ams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c
index 2d609aa9a1..e5d07ccb57 100644
--- a/plugins/ethercat/packet-ams.c
+++ b/plugins/ethercat/packet-ams.c
@@ -779,7 +779,7 @@ static void dissect_ams(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(ams_adstree, hf_ams_adsversionbuild, tvb, offset, sizeof(guint16), ENC_LITTLE_ENDIAN);
offset+=sizeof(guint16);
- proto_tree_add_item(ams_adstree, hf_ams_adsdevicename, tvb, offset, ams_length-offset, TRUE);
+ proto_tree_add_item(ams_adstree, hf_ams_adsdevicename, tvb, offset, ams_length-offset, ENC_ASCII|ENC_NA);
}
}
}