aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-16 17:22:38 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-16 17:22:38 +0000
commitc9718878a956d154cd81c67d44883c885420efb5 (patch)
tree17b4c4604e15aefe6b20e07e47b2d4955893eb38 /epan/dissectors
parente274a0285a0ed4bd7b6736b6a1cc63cc6a4e45f1 (diff)
Fix a format string vulnerability discovered by Bryan Fulton.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13769 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mq.c b/epan/dissectors/packet-mq.c
index a1f7aabe64..52f69d1a39 100644
--- a/epan/dissectors/packet-mq.c
+++ b/epan/dissectors/packet-mq.c
@@ -1607,7 +1607,7 @@ dissect_mq_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Dissect the common part of these structures */
guint8* sStructId;
sStructId = tvb_get_string(tvb, offset, 4);
- ti = proto_tree_add_text(mqroot_tree, tvb, offset, -1, (const char*)sStructId);
+ ti = proto_tree_add_text(mqroot_tree, tvb, offset, -1, "%s", (const char*)sStructId);
g_free(sStructId);
mq_tree = proto_item_add_subtree(ti, ett_mq_spi_base);