git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert snprintf to strlcpy
[dpdk.git]
/
lib
/
librte_cmdline
/
cmdline_parse_portlist.c
diff --git
a/lib/librte_cmdline/cmdline_parse_portlist.c
b/lib/librte_cmdline/cmdline_parse_portlist.c
index
5952f34
..
ad43b52
100644
(file)
--- a/
lib/librte_cmdline/cmdline_parse_portlist.c
+++ b/
lib/librte_cmdline/cmdline_parse_portlist.c
@@
-94,7
+94,7
@@
cmdline_parse_portlist(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
if (token_len >= PORTLIST_TOKEN_SIZE)
return -1;
- s
nprintf(portlist_str, token_len+1, "%s", buf
);
+ s
trlcpy(portlist_str, buf, token_len + 1
);
if (pl) {
pl->map = 0;