Re: [PATCH] power: supply: bq24190_charger: replace deprecated strncpy with strscpy

From: Sebastian Reichel
Date: Fri Oct 20 2023 - 20:53:33 EST



On Fri, 20 Oct 2023 18:14:47 +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 bdi->model_name to be NUL-terminated based on its usage with
> sysfs_emit and format strings:
>
> [...]

Applied, thanks!

[1/1] power: supply: bq24190_charger: replace deprecated strncpy with strscpy
commit: b0009b8bed98bd5d59449af48781703df261c247

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>