flowctl: Replace alloca() with an array.

Reviewed by:	glebius
This commit is contained in:
Pedro F. Giffuni 2015-02-11 17:46:35 +00:00
parent a57dc98e3a
commit ec6c61d896

View File

@ -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;