diff options
author | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-24 02:59:17 +0000 |
---|---|---|
committer | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-24 02:59:17 +0000 |
commit | 634b48804bd60e82b97498fb2ec618f1acce7a5c (patch) | |
tree | 6fb309c9e4a83cb797b7e88062b07ebad68c12ed /epan/dissectors/packet-alcap.c | |
parent | 47ec4a49ba5aa44a2a17474c6d9a47b0e07fe78b (diff) |
use ep_alloc instead of statically allocated buffers
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15030 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-alcap.c')
-rw-r--r-- | epan/dissectors/packet-alcap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-alcap.c b/epan/dissectors/packet-alcap.c index 21b3217256..3253f4557e 100644 --- a/epan/dissectors/packet-alcap.c +++ b/epan/dissectors/packet-alcap.c @@ -46,6 +46,7 @@ #include <string.h> #include "epan/packet.h" +#include <epan/emem.h> #define ALCAP_MSG_HEADER_LEN 6 @@ -115,8 +116,8 @@ static int hf_alcap_organizational_unique_id = -1; static int hf_alcap_served_user_gen_ref = -1; static int hf_alcap_nsap_address = -1; -static char bigbuf[1024]; -static char bigbuf2[1024]; +static char* bigbuf; +static char* bigbuf2; static dissector_handle_t data_handle; static packet_info *g_pinfo; static proto_tree *g_tree; @@ -1621,6 +1622,9 @@ dissect_alcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_item *alcap_item; proto_tree *alcap_tree = NULL; + bigbuf = ep_alloc(1024); + bigbuf2 = ep_alloc(1024); + g_pinfo = pinfo; /* |