[dpdk-dev] [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy
Thomas Monjalon
thomas at monjalon.net
Sun May 13 23:50:40 CEST 2018
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 at dpdk.org
> >
> > Signed-off-by: Reshma Pattan <reshma.pattan at intel.com>
> > ---
> > 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 <bruce.richardson at intel.com>
Applied, thanks
More information about the dev
mailing list