aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/irda/packet-irda.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/irda/packet-irda.c
parent41c04a5599f5973358b5b9ef5bfc135f10baceae (diff)
Fix some "format not a string literal and no format arguments" warnings.
svn path=/trunk/; revision=26652
Diffstat (limited to 'plugins/irda/packet-irda.c')
-rw-r--r--plugins/irda/packet-irda.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/irda/packet-irda.c b/plugins/irda/packet-irda.c
index c80e419058..b981b0d8ba 100644
--- a/plugins/irda/packet-irda.c
+++ b/plugins/irda/packet-irda.c
@@ -828,8 +828,7 @@ static void dissect_iap_result(tvbuff_t* tvb, packet_info* pinfo, proto_tree* ro
}
ti = proto_tree_add_item(tree, hf_iap_list_entry, tvb, offset, 2 + 1 + attr_len, FALSE);
- g_snprintf(buf, sizeof(buf) - 1, "%d", n + 1);
- proto_item_append_text(ti, buf);
+ proto_item_append_text(ti, "%d", n + 1);
entry_tree = proto_item_add_subtree(ti, ett_iap_entry[n]);
proto_tree_add_item(entry_tree, hf_iap_obj_id, tvb, offset, 2, FALSE);
@@ -1325,7 +1324,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " bps)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1343,7 +1342,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " ms)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1365,7 +1364,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " bytes)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1389,7 +1388,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " frame window)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1415,7 +1414,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " additional BOFs at 115200)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1441,7 +1440,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " ms)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1467,7 +1466,7 @@ static unsigned dissect_negotiation(tvbuff_t* tvb, proto_tree* tree, unsigned of
g_strlcat(buf, " s)", 256);
- proto_item_append_text(ti, buf+2);
+ proto_item_append_text(ti, "%s", buf+2);
break;
@@ -1620,7 +1619,7 @@ static void dissect_xid(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root, pro
service_hints[0] = ' ';
service_hints[1] = '(';
- proto_item_append_text(ti, service_hints);
+ proto_item_append_text(ti, "%s", service_hints);
}
}
offset += hints_len;