Re: (subset) [PATCH] mfd: db8500-prcmu: replace deprecated strncpy with strscpy

From: Lee Jones
Date: Thu Oct 05 2023 - 11:28:13 EST


On Wed, 27 Sep 2023 05:10:54 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings
> [1] and as such we should prefer more robust and less ambiguous string
> interfaces.
>
> We expect project_name to be NUL-terminated based on its use with
> pr_info:
> | pr_info("PRCMU firmware: %s(%d), version %d.%d.%d\n",
> | fw_info.version.project_name,
> | fw_info.version.project,
> | fw_info.version.api_version,
> | fw_info.version.func_version,
> | fw_info.version.errata);
>
> [...]

Applied, thanks!

[1/1] mfd: db8500-prcmu: replace deprecated strncpy with strscpy
commit: 5f0c4e32e8da434a83dd74a08e477c11e7efc6f7

--
Lee Jones [李琼斯]