From: Thomas Monjalon Date: Thu, 4 Dec 2014 15:13:45 +0000 (+0100) Subject: cmdline: revert fix overflow on bsd X-Git-Tag: spdx-start~9996 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=29d03f7aa33edc3292bf75730ec684dd4cbe5054;p=dpdk.git cmdline: revert fix overflow on bsd Revert commit a0547e0a751100 because it is an old version of the patch and was applied by error. Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmdline_parse.c index 29f1afdbe1..940480dec6 100644 --- a/lib/librte_cmdline/cmdline_parse.c +++ b/lib/librte_cmdline/cmdline_parse.c @@ -219,7 +219,7 @@ cmdline_parse(struct cmdline *cl, const char * buf) unsigned int inst_num=0; cmdline_parse_inst_t *inst; const char *curbuf; - char result_buf[CMDLINE_PARSE_RESULT_BUFSIZE]; + char result_buf[BUFSIZ]; void (*f)(void *, struct cmdline *, void *) = NULL; void *data = NULL; int comment = 0; diff --git a/lib/librte_cmdline/cmdline_parse.h b/lib/librte_cmdline/cmdline_parse.h index dae53ba790..f18836dfb2 100644 --- a/lib/librte_cmdline/cmdline_parse.h +++ b/lib/librte_cmdline/cmdline_parse.h @@ -80,9 +80,6 @@ extern "C" { #define CMDLINE_PARSE_COMPLETE_AGAIN 1 #define CMDLINE_PARSE_COMPLETED_BUFFER 2 -/* maximum buffer size for parsed result */ -#define CMDLINE_PARSE_RESULT_BUFSIZE 8192 - /** * Stores a pointer to the ops struct, and the offset: the place to * write the parsed result in the destination structure.