summaryrefslogtreecommitdiffstats
path: root/usr.sbin/flowctl
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-02-11 17:46:35 +0000
committerpfg <pfg@FreeBSD.org>2015-02-11 17:46:35 +0000
commit683ca6b704761afcbc4353bde70554feed229c96 (patch)
treecded4274bbcb3dd709abdb0dd0ab8cd568c4869f /usr.sbin/flowctl
parent909002dc4fc00d6c48590d1d3ac574cd13d172b1 (diff)
downloadFreeBSD-src-683ca6b704761afcbc4353bde70554feed229c96.zip
FreeBSD-src-683ca6b704761afcbc4353bde70554feed229c96.tar.gz
flowctl: Replace alloca() with an array.
Reviewed by: glebius
Diffstat (limited to 'usr.sbin/flowctl')
-rw-r--r--usr.sbin/flowctl/flowctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c
index 47ddadf..531b988 100644
--- a/usr.sbin/flowctl/flowctl.c
+++ b/usr.sbin/flowctl/flowctl.c
@@ -222,12 +222,10 @@ ctl_show(int argc, char **argv)
static void
do_show(int version, void (*func)(struct ngnf_show_header *))
{
- struct ng_mesg *ng_mesg;
+ struct ng_mesg ng_mesg[SORCVBUF_SIZE];
struct ngnf_show_header req, *resp;
int token, nread;
- ng_mesg = alloca(SORCVBUF_SIZE);
-
req.version = version;
req.hash_id = req.list_id = 0;
OpenPOWER on IntegriCloud