From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy Date: Sun, 13 May 2018 23:50:40 +0200 Message-ID: <12118432.nGUiPzYX4c@xps> 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Bruce Richardson , stable@dpdk.org To: Reshma Pattan Return-path: In-Reply-To: <20180510133110.GA27828@bricha3-MOBL.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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