diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-07-24 02:59:17 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-07-24 02:59:17 +0000 |
commit | b8a874be215f94fc984ebdf9bd5d7252075eaab7 (patch) | |
tree | 6fb309c9e4a83cb797b7e88062b07ebad68c12ed | |
parent | 273dc953eac5e3bd0f4911f7d0189e5cc7ad9613 (diff) | |
download | wireshark-b8a874be215f94fc984ebdf9bd5d7252075eaab7.tar.gz |
use ep_alloc instead of statically allocated buffers
svn path=/trunk/; revision=15030
-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; /* |