From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Green Subject: [PATCH v4 17/18] app/test-bbdev: strcpy ok for allocated string Date: Fri, 11 May 2018 09:46:41 +0800 Message-ID: <152600320129.53146.5983894189916318956.stgit@localhost.localdomain> References: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: dev@dpdk.org Return-path: Received: from mail.warmcat.com (mail.warmcat.com [163.172.24.82]) by dpdk.org (Postfix) with ESMTP id E6AE81C08A for ; Fri, 11 May 2018 03:46:44 +0200 (CEST) In-Reply-To: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Andy Green --- app/test-bbdev/test_bbdev_vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev_vector.c b/app/test-bbdev/test_bbdev_vector.c index a37e35f4d..c574f2135 100644 --- a/app/test-bbdev/test_bbdev_vector.c +++ b/app/test-bbdev/test_bbdev_vector.c @@ -892,7 +892,7 @@ test_bbdev_vector_read(const char *filename, } memset(entry, 0, strlen(line) + 1); - strncpy(entry, line, strlen(line)); + strcpy(entry, line); /* check if entry ends with , or = */ if (entry[strlen(entry) - 1] == ','