summaryrefslogtreecommitdiff
path: root/plugins/sercosiii
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/sercosiii
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/sercosiii')
-rw-r--r--plugins/sercosiii/packet-sercosiii_1v1_at.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sercosiii/packet-sercosiii_1v1_at.c b/plugins/sercosiii/packet-sercosiii_1v1_at.c
index 79830f5504..9be2363103 100644
--- a/plugins/sercosiii/packet-sercosiii_1v1_at.c
+++ b/plugins/sercosiii/packet-sercosiii_1v1_at.c
@@ -51,12 +51,12 @@ void dissect_siii_at_cp0(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
char devices[]="Recognized Devices"; /* fixme: it would be nice to have this as subtree */
static char outbuf[200];
- proto_tree_add_text(tree, tvb, 0, 1024, devices);
+ proto_tree_add_text(tree, tvb, 0, 1024, "%s", devices);
/* check sequence count field */
seqcnt = tvb_get_letohs(tvb, 0);
g_snprintf(outbuf, sizeof(outbuf), "Number of Devices: %u", (0x1FF & seqcnt)-1);
- proto_tree_add_text(tree, tvb, 0, 2, outbuf);
+ proto_tree_add_text(tree, tvb, 0, 2, "%s", outbuf);
/* check SERCOS address of each topology field */
for(i=1;i < MAX_SERCOS_DEVICES; ++i)
@@ -75,7 +75,7 @@ void dissect_siii_at_cp0(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
{
g_snprintf(outbuf, sizeof(outbuf), "Device Address %u: %u", i, tfield);
}
- proto_tree_add_text(tree, tvb, i*2, 2, outbuf);
+ proto_tree_add_text(tree, tvb, i*2, 2, "%s", outbuf);
}
}