git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/ip_pipeline: add table entry commands
[dpdk.git]
/
app
/
test-bbdev
/
main.c
diff --git
a/app/test-bbdev/main.c
b/app/test-bbdev/main.c
index
3f542a8
..
41b54bb
100644
(file)
--- a/
app/test-bbdev/main.c
+++ b/
app/test-bbdev/main.c
@@
-226,8
+226,9
@@
parse_args(int argc, char **argv, struct test_params *tp)
TEST_ASSERT(strlen(optarg) > 0,
"Config file name is null");
TEST_ASSERT(strlen(optarg) > 0,
"Config file name is null");
- strncpy(tp->test_vector_filename, optarg,
- sizeof(tp->test_vector_filename));
+ snprintf(tp->test_vector_filename,
+ sizeof(tp->test_vector_filename),
+ "%s", optarg);
break;
case 'l':
TEST_ASSERT(strlen(optarg) > 0,
break;
case 'l':
TEST_ASSERT(strlen(optarg) > 0,