app/test: fix sprintf with strlcat
authorPallantla Poornima <pallantlax.poornima@intel.com>
Wed, 13 Mar 2019 11:07:23 +0000 (11:07 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Apr 2019 00:36:22 +0000 (02:36 +0200)
commit323643727f4c5653d9a1ddc552d95bae2b2c2e5c
tree779a8d3dabb001d547d32385d3e24180662a6dcc
parentc12cefa3795881be175e64bebc2798d1f77f9132
app/test: fix sprintf with strlcat

sprintf function is not secure as it doesn't check the length of string.
More secure function strlcat is used.

Fixes: 727909c592 ("app/test: introduce dynamic commands list")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
app/test/commands.c