lkml.org 
[lkml]   [2014]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] scsi: ibmvscsi: ibmvfc.c: Cleaning up missing null-terminate in conjunction with strncpy
Date
And as I understand it, it is fine to replace strncpy to strlcpy here.
But if any of this code do not want a null terminated, or want to have the whole rest of size filled with null characters.
If that is the case this is not a good patch.

Rickard Strandqvist (1):
scsi: ibmvscsi: ibmvfc.c: Cleaning up missing null-terminate in conjunction with
strncpy

drivers/scsi/ibmvscsi/ibmvfc.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

--
1.7.10.4



\
 
 \ /
  Last update: 2014-07-31 01:01    [W:0.143 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site