From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 7272C1C18B; Sun, 13 May 2018 23:50:42 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 08ED525B8A; Sun, 13 May 2018 17:50:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 13 May 2018 17:50:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=8iMF/zry8qradVyod8+rmV08D3 JOWJxCni4OfBLoMbY=; b=fJTK41BE09yVyB2I6fQn7QpUbqeXliU8zH6w8d8g+R etSag5IU4kmcXHbLtaEsBvBqFrx/AqWUOYPXac4cq9uAdcOET1piTKNfxxtN1RH+ gDLdUqZvdR7k35HesneJRSfwr7ltctGqmZIWmgUXdJAyKr2ZcqH1iJ2mZNLrqS0j s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8iMF/z ry8qradVyod8+rmV08D3JOWJxCni4OfBLoMbY=; b=KOC0EVGdBhrmKkcKAZkgJ2 bODMN4TVNIm2N+Kn+wGoBfenQOnJNdc9ycSm/4kTEsrcEMOXNpB0JgFqpaSONLhA mKrRS5l9UjAWq6eXoh4KFA2vcut5H61smGmflAPHpP/fbpHYCicgXjPpZcAlqF7I rWB2MNjnKRZJE7K7CJs6sm+iFebeWa0jiIGleVJx+QZ72P0BxrTZYbVMmpOfKFoN MIGArjuh3NBiFeQq2MeIZ21gidZwcmeLpYjWPdn+2peCSkAuuM3qZWBLD7ZgNDpf srgAkpyohHgTl6Oha3oRCJ7re8rd8+0Caslw3/l8ry7ZgTbAbQxqjWaHY63LtBBA == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 582BAE47A1; Sun, 13 May 2018 17:50:41 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org, Bruce Richardson , stable@dpdk.org Date: Sun, 13 May 2018 23:50:40 +0200 Message-ID: <12118432.nGUiPzYX4c@xps> In-Reply-To: <20180510133110.GA27828@bricha3-MOBL.ger.corp.intel.com> References: <1525865729-16086-3-git-send-email-reshma.pattan@intel.com> <1525953944-11339-1-git-send-email-reshma.pattan@intel.com> <20180510133110.GA27828@bricha3-MOBL.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy 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: Sun, 13 May 2018 21:50:42 -0000 10/05/2018 15:31, Bruce Richardson: > On Thu, May 10, 2018 at 01:05:44PM +0100, Reshma Pattan wrote: > > Use strlcpy instead of strncpy. > > > > Fixes: db75c7af19 ("examples/vhost_scsi: introduce a new sample app") > > CC: stable@dpdk.org > > > > Signed-off-by: Reshma Pattan > > --- > > v2: replace magic numbers with sizeof() wherever possible. > > --- > > examples/vhost_scsi/scsi.c | 14 +++++++++----- > > examples/vhost_scsi/scsi_spec.h | 2 +- > > 2 files changed, 10 insertions(+), 6 deletions(-) > > > Looks better now, thanks. > Acked-by: Bruce Richardson Applied, thanks