aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tr.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-12 16:15:54 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-12 16:15:54 +0000
commitd1ee499bc7680d057ee4c638c0881c583a875007 (patch)
tree6a6dca5a32a04357e4f16a86cce62565f3336abd /epan/dissectors/packet-tr.c
parent95ae33c8a07a4aeceec43ac851412a580984f0c5 (diff)
emem -> wmem
svn path=/trunk/; revision=51972
Diffstat (limited to 'epan/dissectors/packet-tr.c')
-rw-r--r--epan/dissectors/packet-tr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-tr.c b/epan/dissectors/packet-tr.c
index 0f5533ca7b..547d38d59d 100644
--- a/epan/dissectors/packet-tr.c
+++ b/epan/dissectors/packet-tr.c
@@ -32,7 +32,7 @@
#include "packet-llc.h"
#include <epan/prefs.h>
#include <epan/tap.h>
-#include <epan/emem.h>
+#include <epan/wmem/wmem.h>
static int proto_tr = -1;
static int hf_tr_dst = -1;
@@ -587,8 +587,8 @@ static void
add_ring_bridge_pairs(int rcf_len, tvbuff_t *tvb, proto_tree *tree)
{
proto_item *hidden_item;
- int j, size;
- int segment, brdgnmb, unprocessed_rif;
+ int j, size;
+ int segment, brdgnmb, unprocessed_rif;
int buff_offset=0;
#define RIF_OFFSET 16
@@ -597,7 +597,7 @@ add_ring_bridge_pairs(int rcf_len, tvbuff_t *tvb, proto_tree *tree)
char *buffer;
#define MAX_BUF_LEN 3 + (RIF_BYTES_TO_PROCESS / 2) * 6 + 1
- buffer=(char *)ep_alloc(MAX_BUF_LEN);
+ buffer=(char *)wmem_alloc(wmem_packet_scope(), MAX_BUF_LEN);
/* Only process so many bytes of RIF, as per TR spec, and not overflow
* static buffer above */
unprocessed_rif = rcf_len - RIF_BYTES_TO_PROCESS;