X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fcmdline%2Fparse_obj_list.c;h=5d29f9d59b6323817a4110841655e612dd844836;hb=080f57bceca4eff7048dc990ec03404d233b885e;hp=69eb448e7aebe64b67eafe0b53a19938f90a1e4e;hpb=0cdc9c96944885cf9141fda1a4d0bfdbd54c8ca6;p=dpdk.git diff --git a/examples/cmdline/parse_obj_list.c b/examples/cmdline/parse_obj_list.c index 69eb448e7a..5d29f9d59b 100644 --- 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) - snprintf(dstbuf, size, "%s", o->name); + strlcpy(dstbuf, o->name, size); return 0; }