diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-06-20 19:35:58 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-06-20 19:35:58 +0000 |
commit | 9ed804afbbc10c08e19fb72797535cf69f01378c (patch) | |
tree | 0bc3f2c2b25520d8672dc5a055f3181818019400 /epan/dissectors/packet-slowprotocols.c | |
parent | d0d0f2314bed810351bde6939544d1187dd4c56a (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14713 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-slowprotocols.c')
-rw-r--r-- | epan/dissectors/packet-slowprotocols.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-slowprotocols.c b/epan/dissectors/packet-slowprotocols.c index ba3ca3f131..f81b1da499 100644 --- a/epan/dissectors/packet-slowprotocols.c +++ b/epan/dissectors/packet-slowprotocols.c @@ -841,7 +841,7 @@ static const char cont_sep[] = ", "; if(item){ \ string = get_manuf_name(mac); \ proto_item_append_text(item, " ("); \ - proto_item_append_text(item, string); \ + proto_item_append_text(item, "%s", string); \ proto_item_append_text(item, ")"); \ } |