app/bbdev: replace sprintf with snprintf or strlcpy
authorPallantla Poornima <pallantlax.poornima@intel.com>
Tue, 9 Apr 2019 13:05:40 +0000 (14:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 19:32:10 +0000 (21:32 +0200)
commitcde417155fa3dd351c230731ddfc8db3f57db227
treeeb9a839d564dde99369d38ad8c96b1c296fed1a4
parent50247fe03fe0476746b1ecdb540d44e24a28cece
app/bbdev: replace sprintf with snprintf or strlcpy

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

Fixes: f714a18885 ("app/testbbdev: add test application for bbdev")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Acked-by: Amr Mokhtar <amr.mokhtar@intel.com>
app/test-bbdev/test_bbdev.c