Re: [PATCH v2] scsi: libfc: replace deprecated strncpy with memcpy

From: Martin K. Petersen
Date: Sun Mar 10 2024 - 19:05:04 EST


On Wed, 21 Feb 2024 23:50:26 +0000, Justin Stitt wrote:

> strncpy() is deprecated [1] and as such we should use different apis to
> copy string data.
>
> We can see that ct is NUL-initialized with fc_ct_hdr_fill:
> | ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rspn) + len,
> ...
>
> [...]

Applied to 6.9/scsi-queue, thanks!

[1/1] scsi: libfc: replace deprecated strncpy with memcpy
https://git.kernel.org/mkp/scsi/c/3e24118ec185

--
Martin K. Petersen Oracle Linux Engineering