]> git.droids-corp.org - dpdk.git/blobdiff - app/test-bbdev/main.c
net/mlx5: move locally used functions to static
[dpdk.git] / app / test-bbdev / main.c
index 7af25224c20c04d06fb1d0d216fe0ac2ef48f63a..a2f8722ecc06d142fe0fb7473f89f5b40148459c 100644 (file)
@@ -226,9 +226,8 @@ parse_args(int argc, char **argv, struct test_params *tp)
                        TEST_ASSERT(strlen(optarg) > 0,
                                        "Config file name is null");
 
-                       snprintf(tp->test_vector_filename,
-                                       sizeof(tp->test_vector_filename),
-                                       "%s", optarg);
+                       strlcpy(tp->test_vector_filename, optarg,
+                               sizeof(tp->test_vector_filename));
                        break;
                case 'l':
                        TEST_ASSERT(strlen(optarg) > 0,