Re: [PATCH] nvme: prefer strlcpy to strncpy

2018-05-29 Thread Nick Desaulniers
On Tue, May 29, 2018 at 1:11 AM, Christoph Hellwig wrote: > On Mon, May 28, 2018 at 11:49:18PM -0700, Nick Desaulniers wrote: >> Fixes a stringop-truncation warning from gcc-8. > > What would that warning be? Maybe it actually is genuinly useful, > and switching to strlcpy just papers over it..

Re: [PATCH] nvme: prefer strlcpy to strncpy

2018-05-29 Thread Christoph Hellwig
On Mon, May 28, 2018 at 11:49:18PM -0700, Nick Desaulniers wrote: > Fixes a stringop-truncation warning from gcc-8. What would that warning be? Maybe it actually is genuinly useful, and switching to strlcpy just papers over it..

[PATCH] nvme: prefer strlcpy to strncpy

2018-05-28 Thread Nick Desaulniers
Fixes a stringop-truncation warning from gcc-8. Signed-off-by: Nick Desaulniers --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 99b857e..b823ecb 100644 --- a/drivers/nvme/host/core.c +++ b/