Messages in this thread | | | From | Sebastian Reichel <> | Subject | Re: [PATCH] power: supply: bq25980: replace deprecated strncpy with strscpy | Date | Sat, 21 Oct 2023 02:53:11 +0200 |
| |
On Fri, 20 Oct 2023 19:11:07 +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 bq->model_name to be NUL-terminated based on its usage with > sysfs_emit and format strings: > > [...]
Applied, thanks!
[1/1] power: supply: bq25980: replace deprecated strncpy with strscpy commit: afb0379b0f6657b9f626d23c3bb00b4e8823bd2d
Best regards, -- Sebastian Reichel <sebastian.reichel@collabora.com>
| |