aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ppi.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-07-29 22:46:10 +0000
committerGerald Combs <gerald@wireshark.org>2010-07-29 22:46:10 +0000
commit3f0a833811dd1bdcab225aeee3b524c2f9e6cfb6 (patch)
treef9c4e47c1b0429b9387d67a598259f418edd4353 /epan/dissectors/packet-ppi.c
parent01a16291ab53fa5e8b0b603d410f529085a076cb (diff)
Use ep-allocated strings for our data source names.
svn path=/trunk/; revision=33676
Diffstat (limited to 'epan/dissectors/packet-ppi.c')
-rw-r--r--epan/dissectors/packet-ppi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ppi.c b/epan/dissectors/packet-ppi.c
index 4f5071f1df..67d75ce839 100644
--- a/epan/dissectors/packet-ppi.c
+++ b/epan/dissectors/packet-ppi.c
@@ -729,7 +729,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
fragment_data *fd_head = NULL, *ft_fdh = NULL;
gint len_remain, pad_len = 0, ampdu_len = 0;
gint mpdu_count = 0;
- gchar mpdu_str[12]; /* "MPDU #xxxxx" */
+ gchar *mpdu_str;
gboolean first_mpdu = TRUE;
guint last_frame = 0;
gboolean is_ht = FALSE;
@@ -906,7 +906,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
while (fd_head) {
if (fd_head->data && fd_head->len) {
mpdu_count++;
- g_snprintf(mpdu_str, 12, "MPDU #%d", mpdu_count);
+ mpdu_str = ep_strdup_printf("MPDU #%d", mpdu_count);
next_tvb = tvb_new_child_real_data(tvb, fd_head->data,
fd_head->len, fd_head->len);