diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-29 22:46:10 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-29 22:46:10 +0000 |
commit | 5a32b65077965a7d5bc22aba9faac998da0f5e6d (patch) | |
tree | f9c4e47c1b0429b9387d67a598259f418edd4353 /epan/dissectors/packet-ppi.c | |
parent | 5a20ee2509f5f817bd494012923224981c47ebef (diff) |
Use ep-allocated strings for our data source names.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33676 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ppi.c')
-rw-r--r-- | epan/dissectors/packet-ppi.c | 4 |
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); |