summaryrefslogtreecommitdiff
path: root/plugins/ethercat/packet-nv.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-31 17:27:51 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-31 17:27:51 +0000
commit94e9e2b1ec8fe12b927fb0ec09b976982c5a5369 (patch)
tree61564ff05bf6ae519f338ce421d74eecceb6b287 /plugins/ethercat/packet-nv.c
parent41c04a5599f5973358b5b9ef5bfc135f10baceae (diff)
downloadwireshark-94e9e2b1ec8fe12b927fb0ec09b976982c5a5369.tar.gz
Fix some "format not a string literal and no format arguments" warnings.
svn path=/trunk/; revision=26652
Diffstat (limited to 'plugins/ethercat/packet-nv.c')
-rw-r--r--plugins/ethercat/packet-nv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethercat/packet-nv.c b/plugins/ethercat/packet-nv.c
index 49c7663b36..aa44d28546 100644
--- a/plugins/ethercat/packet-nv.c
+++ b/plugins/ethercat/packet-nv.c
@@ -134,7 +134,7 @@ static void dissect_nv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ti= proto_tree_add_item(nv_header_tree, hf_nv_publisher, tvb, offset, sizeof(guint8)*6, TRUE);
NvPublisherFormater(tvb, offset, szText, nMax);
- proto_item_set_text(ti, szText);
+ proto_item_set_text(ti, "%s", szText);
offset+=(sizeof(guint8)*6);
ti= proto_tree_add_item(nv_header_tree, hf_nv_count, tvb, offset, sizeof(guint16), TRUE);
@@ -150,7 +150,7 @@ static void dissect_nv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ti = proto_tree_add_item(nv_tree, hf_nv_variable, tvb, offset, ETYPE_88A4_NV_DATA_HEADER_Len+var_length, TRUE);
NvVarHeaderFormater(tvb, offset, szText, nMax);
- proto_item_set_text(ti, szText);
+ proto_item_set_text(ti, "%s", szText);
nv_var_tree = proto_item_add_subtree(ti, ett_nv_var);
ti = proto_tree_add_item(nv_var_tree, hf_nv_varheader, tvb, offset, ETYPE_88A4_NV_DATA_HEADER_Len, TRUE);