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

From: Martin K. Petersen
Date: Tue Feb 18 2025 - 21:34:55 EST



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