From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 535C12BAA for ; Thu, 3 May 2018 12:35:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 03:35:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,358,1520924400"; d="scan'208";a="38356630" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga008.jf.intel.com with ESMTP; 03 May 2018 03:35:26 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id w43AZQRd027299; Thu, 3 May 2018 11:35:26 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id w43AZQMp005836; Thu, 3 May 2018 11:35:26 +0100 Received: (from aburakov@localhost) by sivswdev01.ir.intel.com with LOCAL id w43AZQFD005832; Thu, 3 May 2018 11:35:26 +0100 From: Anatoly Burakov To: dev@dpdk.org Cc: jianfeng.tan@intel.com Date: Thu, 3 May 2018 11:35:26 +0100 Message-Id: X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] ipc: fix duplicate string copy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2018 10:35:29 -0000 Coverity issue: 272582 Fixes: 2147c0950580 ("ipc: clean up code") Cc: jianfeng.tan@intel.com Signed-off-by: Anatoly Burakov --- 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