From f90e4fcc13c24d08a4efaa695f5dd68fd6ab755c Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Thu, 3 May 2018 11:35:26 +0100 Subject: [PATCH] ipc: fix duplicate string copy in async request Coverity issue: 272582 Fixes: 2147c0950580 ("ipc: clean up code") Signed-off-by: Anatoly Burakov Acked-by: Harry van Haaren --- lib/librte_eal/common/eal_common_proc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index 611aba299c..707d8ab30a 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -870,7 +870,6 @@ mp_request_async(const char *dst, struct rte_mp_msg *req, pending_req->type = REQUEST_TYPE_ASYNC; strlcpy(pending_req->dst, dst, sizeof(pending_req->dst)); - strcpy(pending_req->dst, dst); pending_req->request = req; pending_req->reply = reply_msg; pending_req->async.param = param; -- 2.20.1