X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest-eventdev%2Fevt_options.c;h=46c074feaa083d5b7c158ea172988abc4f7f450a;hb=07efd6ddc0499688eb11ae4866d3532295d6db2b;hp=af5c08bac8bf010c01c8184d2b55cfa71d66c406;hpb=f0959283edb22dbabaf51c1e20fea466284d634e;p=dpdk.git diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c index af5c08bac8..46c074feaa 100644 --- a/app/test-eventdev/evt_options.c +++ b/app/test-eventdev/evt_options.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -120,7 +121,7 @@ evt_parse_timer_prod_type_burst(struct evt_options *opt, static int evt_parse_test_name(struct evt_options *opt, const char *arg) { - snprintf(opt->test_name, EVT_TEST_NAME_MAX_LEN, "%s", arg); + strlcpy(opt->test_name, arg, EVT_TEST_NAME_MAX_LEN); return 0; }