From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy Date: Thu, 10 May 2018 14:31:11 +0100 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, stable@dpdk.org To: Reshma Pattan Return-path: Content-Disposition: inline In-Reply-To: <1525953944-11339-1-git-send-email-reshma.pattan@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" 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