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
replace snprintf with strlcpy without adding extra include
[dpdk.git]
/
examples
/
cmdline
/
parse_obj_list.c
diff --git
a/examples/cmdline/parse_obj_list.c
b/examples/cmdline/parse_obj_list.c
index
69eb448
..
5d29f9d
100644
(file)
--- a/
examples/cmdline/parse_obj_list.c
+++ b/
examples/cmdline/parse_obj_list.c
@@
-98,7
+98,7
@@
int complete_get_elt_obj_list(cmdline_parse_token_hdr_t *tk,
return -1;
if (dstbuf)
- s
nprintf(dstbuf, size, "%s", o->nam
e);
+ s
trlcpy(dstbuf, o->name, siz
e);
return 0;
}