From: Anatoly Burakov Date: Thu, 3 May 2018 10:35:26 +0000 (+0100) Subject: ipc: fix duplicate string copy in async request X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f90e4fcc13c24d08a4efaa695f5dd68fd6ab755c;p=dpdk.git 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 --- 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;