summaryrefslogtreecommitdiff
path: root/plugins/profinet/packet-pn-dcp.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-06-20 19:35:58 +0000
committerGerald Combs <gerald@wireshark.org>2005-06-20 19:35:58 +0000
commit3a6c9ab13448b557586a427bd025bc1ff99ac4cc (patch)
tree0bc3f2c2b25520d8672dc5a055f3181818019400 /plugins/profinet/packet-pn-dcp.c
parentc3cfe365cfdecc58122b8042797d58004e2297f3 (diff)
downloadwireshark-3a6c9ab13448b557586a427bd025bc1ff99ac4cc.tar.gz
Fix a format string vulneratility in the AFP dissector identified
by iDEFENSE. Add constant format strings to proto_item_append_text() in a bunch of other dissectors. Copy a comment from proto.c to proto.h. svn path=/trunk/; revision=14713
Diffstat (limited to 'plugins/profinet/packet-pn-dcp.c')
-rw-r--r--plugins/profinet/packet-pn-dcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/profinet/packet-pn-dcp.c b/plugins/profinet/packet-pn-dcp.c
index f3c75da900..4dcdafd797 100644
--- a/plugins/profinet/packet-pn-dcp.c
+++ b/plugins/profinet/packet-pn-dcp.c
@@ -334,7 +334,7 @@ pn_append_info(packet_info *pinfo, proto_item *dcp_item, char *text)
if (check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, text);
- proto_item_append_text(dcp_item, text);
+ proto_item_append_text(dcp_item, "%s", text);
}