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

Bruce Richardson bruce.richardson at intel.com
Thu May 10 15:31:11 CEST 2018


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>


More information about the dev mailing list