Re: [PATCH v2] scsi: target: Replace deprecated strncpy() with strscpy()

Martin K. Petersen
2025-03-04T02:36:07Z

Thorsten,

> strncpy() is deprecated for NUL-terminated destination buffers; use
> strscpy() instead. The destination buffer db_root is only used with
> "%s" format strings and must therefore be NUL-terminated, but not
> NUL-padded.

Applied to 6.15/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering