Re: [PATCH v2] scsi: hpsa: Replace deprecated strncpy() with strscpy_pad()

Martin K. Petersen
2025-02-19T02:34:41Z

Thorsten,

> strncpy() is deprecated for NUL-terminated destination buffers.
> Replace memset() and strncpy() with strscpy_pad() to copy the version
> string and fill the remaining bytes in the destination buffer with NUL
> bytes. This avoids zeroing the memory before copying the string.

Applied to 6.15/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering