aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ncp-nmas.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-07-11 03:19:15 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-07-11 03:19:15 +0000
commita003f7cd8f25adcce69f357ed588fd0e5fa38c55 (patch)
tree75312b0cc715dcbc151dd26264cdae3da87432b1 /epan/dissectors/packet-ncp-nmas.c
parent7eb71098425025222cb1b4dd5aaf0cecaa679af2 (diff)
fix two of iljas bugs
svn path=/trunk/; revision=18710
Diffstat (limited to 'epan/dissectors/packet-ncp-nmas.c')
-rw-r--r--epan/dissectors/packet-ncp-nmas.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ncp-nmas.c b/epan/dissectors/packet-ncp-nmas.c
index 78b03d0018..d5e788a2aa 100644
--- a/epan/dissectors/packet-ncp-nmas.c
+++ b/epan/dissectors/packet-ncp-nmas.c
@@ -32,6 +32,7 @@
#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
+#include <epan/emem.h>
#include "packet-ncp-int.h"
#include "packet-ncp-nmas.h"
@@ -204,11 +205,12 @@ nmas_string(tvbuff_t* tvb, int hfinfo, proto_tree *nmas_tree, int offset, gboole
{
int foffset = offset;
guint32 str_length;
- char buffer[ITEM_LABEL_LENGTH];
+ char *buffer;
guint32 i;
guint16 c_char;
guint32 length_remaining = 0;
+ buffer=ep_alloc(ITEM_LABEL_LENGTH+1);
if (little) {
str_length = tvb_get_letohl(tvb, foffset);
}