Re: [dpdk-dev] [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy

2018-05-13 Thread Thomas Monjalon
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: sta...@dpdk.org > > > > Signed-off-by: Reshma Pattan > > --- > > v2: repl

Re: [dpdk-dev] [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy

2018-05-10 Thread 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: sta...@dpdk.org > > Signed-off-by: Reshma Pattan > --- > v2: replace magic numbers with sizeof() wherever possible. > -

[dpdk-dev] [PATCH v2] examples/vhost_scsi: replace strncpy with strlcpy

2018-05-10 Thread Reshma Pattan
Use strlcpy instead of strncpy. Fixes: db75c7af19 ("examples/vhost_scsi: introduce a new sample app") CC: sta...@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