From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] app/compress-perf: call generic strlcpy Date: Sun, 24 Feb 2019 23:42:01 +0100 Message-ID: <20190224224201.26224-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, tomaszx.jozwiak@intel.com To: Pablo De Lara Guarch Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id DC81B2A6A for ; Sun, 24 Feb 2019 23:42:21 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The call to strlcpy uses either libc, libbsd or internal rte_strlcpy. No need to call the DPDK flavor explictly. Signed-off-by: Thomas Monjalon --- app/test-compress-perf/comp_perf_options_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test-compress-perf/comp_perf_options_parse.c index 66eb81fc59..d2b208de35 100644 --- a/app/test-compress-perf/comp_perf_options_parse.c +++ b/app/test-compress-perf/comp_perf_options_parse.c @@ -373,7 +373,7 @@ parse_driver_name(struct comp_test_data *test_data, const char *arg) if (strlen(arg) > (sizeof(test_data->driver_name) - 1)) return -1; - rte_strlcpy(test_data->driver_name, arg, + strlcpy(test_data->driver_name, arg, sizeof(test_data->driver_name)); return 0; @@ -385,7 +385,7 @@ parse_test_file(struct comp_test_data *test_data, const char *arg) if (strlen(arg) > (sizeof(test_data->input_file) - 1)) return -1; - rte_strlcpy(test_data->input_file, arg, sizeof(test_data->input_file)); + strlcpy(test_data->input_file, arg, sizeof(test_data->input_file)); return 0; } -- 2.20.1