summaryrefslogtreecommitdiff
path: root/epan/address_to_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r--epan/address_to_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c
index 00e3be050a..5c1f6cd3c1 100644
--- a/epan/address_to_str.c
+++ b/epan/address_to_str.c
@@ -239,12 +239,12 @@ vines_addr_to_str_buf(const guint8 *addrp, gchar *buf, int buf_len)
XXX update the address_to_str stuff to use this function.
*/
gchar *
-eui64_to_str(const guint64 ad) {
+eui64_to_str(wmem_allocator_t *scope, const guint64 ad) {
gchar *buf;
guint8 *p_eui64;
- p_eui64 = (guint8 *)ep_alloc(8);
- buf=(gchar *)ep_alloc(EUI64_STR_LEN);
+ p_eui64=(guint8 *)wmem_alloc(scope, 8);
+ buf=(gchar *)wmem_alloc(scope, EUI64_STR_LEN);
/* Copy and convert the address to network byte order. */
*(guint64 *)(void *)(p_eui64) = pntoh64(&(ad));