From 94e9e2b1ec8fe12b927fb0ec09b976982c5a5369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 31 Oct 2008 17:27:51 +0000 Subject: Fix some "format not a string literal and no format arguments" warnings. svn path=/trunk/; revision=26652 --- plugins/sercosiii/packet-sercosiii_1v1_at.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/sercosiii') 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); } } -- cgit v1.2.1