aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mq.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-03-16 17:22:38 +0000
committerGerald Combs <gerald@wireshark.org>2005-03-16 17:22:38 +0000
commit47999c28c44098d349806d055da3a635599ca4da (patch)
tree17b4c4604e15aefe6b20e07e47b2d4955893eb38 /epan/dissectors/packet-mq.c
parenteadb365e2a81159c2b4f286b87c0a1354c2fcd17 (diff)
Fix a format string vulnerability discovered by Bryan Fulton.
svn path=/trunk/; revision=13769
Diffstat (limited to 'epan/dissectors/packet-mq.c')
-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);