app/bbdev: fix null termination in argument parsing
authorAmr Mokhtar <amr.mokhtar@intel.com>
Wed, 31 Jan 2018 12:40:40 +0000 (12:40 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 17:40:36 +0000 (18:40 +0100)
commit9efeea0a19fa3da77b72905d85d5c24a2320080b
tree3f961b40687fcaec3f23741fe4fc576c1e549a7f
parenta9bb0c44c775784f3d6cafd4d774301db633cb47
app/bbdev: fix null termination in argument parsing

use snprintf instead of strncpy to ensure null termination when
copying test_vector_filename from cmd arguments.

Coverity issue: 257001
Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev")

Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
app/test-bbdev/main.c