diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-07-11 03:19:15 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-07-11 03:19:15 +0000 |
commit | df845bff56e554a03a7bf58990483a1d3ab40384 (patch) | |
tree | 75312b0cc715dcbc151dd26264cdae3da87432b1 /epan/dissectors/packet-ncp-nmas.c | |
parent | 6039d565480a42bd940a43a283d99e8e540b41c2 (diff) |
fix two of iljas bugs
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18710 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ncp-nmas.c')
-rw-r--r-- | epan/dissectors/packet-ncp-nmas.c | 4 |
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); } |