Re: [PATCH] scsi: ibmvscsi: Improve strings handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/26/18 12:10, Breno Leitao wrote:
  	if (ppartition_name)
  		strncpy(partition_name, ppartition_name,
-				sizeof(partition_name));
+				sizeof(partition_name) - 1);

Please use strlcpy() instead of trying to emulate it.

Thanks,

Bart.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux