cmdline: fix overflow on bsd
[dpdk.git] / lib / librte_cmdline / cmdline_parse.c
index 940480d..29f1afd 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;