]> git.droids-corp.org - dpdk.git/blobdiff - examples/cmdline/parse_obj_list.c
net/ionic: add basic port operations
[dpdk.git] / examples / cmdline / parse_obj_list.c
index 69eb448e7aebe64b67eafe0b53a19938f90a1e4e..5d29f9d59b6323817a4110841655e612dd844836 100644 (file)
@@ -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;
 }