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

From: Martin K. Petersen
Date: Mon Mar 03 2025 - 21:36:20 EST



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