diff options
Diffstat (limited to 'epan/dissectors/packet-aim-chat.c')
-rw-r--r-- | epan/dissectors/packet-aim-chat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-aim-chat.c b/epan/dissectors/packet-aim-chat.c index cf6801f2eb..6dbf52a27b 100644 --- a/epan/dissectors/packet-aim-chat.c +++ b/epan/dissectors/packet-aim-chat.c @@ -30,7 +30,7 @@ #include <epan/packet.h> #include <epan/strutil.h> -#include <epan/emem.h> +#include <epan/wmem/wmem.h> #include "packet-tcp.h" #include "packet-aim.h" @@ -87,8 +87,8 @@ static int dissect_aim_chat_outgoing_msg(tvbuff_t *tvb, packet_info *pinfo, prot guchar *msg; int buddyname_length; - buddyname=(guchar *)ep_alloc(MAX_BUDDYNAME_LENGTH+1); - msg=(guchar *)ep_alloc(1000); + buddyname=(guchar *)wmem_alloc(wmem_packet_scope(), MAX_BUDDYNAME_LENGTH+1); + msg=(guchar *)wmem_alloc(wmem_packet_scope(), 1000); buddyname_length = aim_get_buddyname( buddyname, tvb, 30, 31 ); /* channel message from client */ @@ -108,8 +108,8 @@ static int dissect_aim_chat_incoming_msg(tvbuff_t *tvb, packet_info *pinfo, prot /* channel message to client */ int buddyname_length; - buddyname=(guchar *)ep_alloc(MAX_BUDDYNAME_LENGTH+1); - msg=(guchar *)ep_alloc(1000); + buddyname=(guchar *)wmem_alloc(wmem_packet_scope(), MAX_BUDDYNAME_LENGTH+1); + msg=(guchar *)wmem_alloc(wmem_packet_scope(), 1000); buddyname_length = aim_get_buddyname( buddyname, tvb, 30, 31 ); aim_get_message( msg, tvb, 36 + buddyname_length, tvb_length(tvb) |