Hi Bruce,
> Can the magic numbers "32", "8", "4" be replaced with non-magic values, e.g.
> sizeof(...).
>
This is now taken care wherever possible in latest patch.
Thanks,
Reshma
> /Bruce
Hi Bruce,
> -Original Message-
> From: Richardson, Bruce
> Sent: Wednesday, May 9, 2018 2:37 PM
> To: Pattan, Reshma
> Cc: dev@dpdk.org; sta...@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] examples/vhost_scsi: replace strncpy with
> strlcpy
>
> On Wed, May 0
On Wed, May 09, 2018 at 12:35:29PM +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
> ---
> examples/vhost_scsi/scsi.c | 11 ++-
> 1 file changed
Use strlcpy instead of strncpy.
Fixes: db75c7af19 ("examples/vhost_scsi: introduce a new sample app")
CC: sta...@dpdk.org
Signed-off-by: Reshma Pattan
---
examples/vhost_scsi/scsi.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/examples/vhost_scsi/scsi.c b/exam
4 matches
Mail list logo