]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_cmdline/cmdline_parse.c
cmdline: fix overflow on bsd
[dpdk.git] / lib / librte_cmdline / cmdline_parse.c
index 940480dec6d395c9f038977a69a1d92245467874..29f1afdbe1f065b4dec0d40528d31540eccae2b5 100644 (file)
@@ -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[BUFSIZ];
+       char result_buf[CMDLINE_PARSE_RESULT_BUFSIZE];
        void (*f)(void *, struct cmdline *, void *) = NULL;
        void *data = NULL;
        int comment = 0;