test/distributor: replace sprintf with strlcpy
authorPallantla Poornima <pallantlax.poornima@intel.com>
Thu, 14 Feb 2019 09:45:49 +0000 (09:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Apr 2019 08:40:56 +0000 (10:40 +0200)
commit7ab0770233ed5bb89845abf6b978ef15b2520bd8
tree8a6d5d43b8fa3843fdadc1f52138c6e7de9d0c7c
parent1ea7c4aefc1ae1a6dd163cca4931aafd6e121907
test/distributor: replace sprintf with strlcpy

sprintf function is not secure as it doesn't check the length of string.
replaced sprintf with strlcpy.

Fixes: f74df2c57e ("test/distributor: test single and burst API")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
app/test/test_distributor.c