[dpdk-dev] [PATCH] ipc: fix duplicate string copy
Anatoly Burakov
anatoly.burakov at intel.com
Thu May 3 12:35:26 CEST 2018
Coverity issue: 272582
Fixes: 2147c0950580 ("ipc: clean up code")
Cc: jianfeng.tan at intel.com
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
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 611aba2..707d8ab 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.7.4
More information about the dev
mailing list