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 <reshma.pat...@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.richard...@intel.com>
- [dpdk-dev] [PATCH] examples/ipsec-secgw: replace str... Reshma Pattan
- [dpdk-dev] [PATCH] examples/quota_watermark: fi... Reshma Pattan
- Re: [dpdk-dev] [dpdk-stable] [PATCH] exampl... De Lara Guarch, Pablo
- Re: [dpdk-dev] [dpdk-stable] [PATCH] exampl... Thomas Monjalon
- [dpdk-dev] [PATCH] examples/vhost_scsi: replace... Reshma Pattan
- Re: [dpdk-dev] [PATCH] examples/vhost_scsi:... Bruce Richardson
- Re: [dpdk-dev] [PATCH] examples/vhost_s... Pattan, Reshma
- Re: [dpdk-dev] [PATCH] examples/vhost_s... Pattan, Reshma
- [dpdk-dev] [PATCH v2] examples/vhost_scsi: ... Reshma Pattan
- Re: [dpdk-dev] [PATCH v2] examples/vhos... Bruce Richardson
- Re: [dpdk-dev] [PATCH v2] examples/... Thomas Monjalon
- Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: re... Bruce Richardson
- [dpdk-dev] [PATCH v2] examples/ipsec-secgw: rep... Reshma Pattan
- [dpdk-dev] [PATCH v3] examples/ipsec-secgw:... Reshma Pattan
- Re: [dpdk-dev] [dpdk-stable] [PATCH v3]... De Lara Guarch, Pablo
- Re: [dpdk-dev] [dpdk-stable] [PATCH... Thomas Monjalon