ac09cd9732
The argument ressize contains the size of the result buffer which should be large enough to store the parsed result of a token. In this case, it should be larger or equal to sizeof(cmdline_portlist_t) (4 bytes), not PORTLIST_TOKEN_SIZE which is the max size of the token string. This is not a critical, it fixes cases where the total length of the parsed instruction is greater than the maximum. Signed-off-by: Olivier Matz <olivier.matz@6wind.com> |
||
---|---|---|
.. | ||
cmdline_cirbuf.c | ||
cmdline_cirbuf.h | ||
cmdline_parse_etheraddr.c | ||
cmdline_parse_etheraddr.h | ||
cmdline_parse_ipaddr.c | ||
cmdline_parse_ipaddr.h | ||
cmdline_parse_num.c | ||
cmdline_parse_num.h | ||
cmdline_parse_portlist.c | ||
cmdline_parse_portlist.h | ||
cmdline_parse_string.c | ||
cmdline_parse_string.h | ||
cmdline_parse.c | ||
cmdline_parse.h | ||
cmdline_rdline.c | ||
cmdline_rdline.h | ||
cmdline_socket.c | ||
cmdline_socket.h | ||
cmdline_vt100.c | ||
cmdline_vt100.h | ||
cmdline.c | ||
cmdline.h | ||
Makefile | ||
rte_cmdline_version.map |