lkml.org 
[lkml]   [2023]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] power: supply: bq2515x: replace deprecated strncpy with strscpy
Date

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

Applied, thanks!

[1/1] power: supply: bq2515x: replace deprecated strncpy with strscpy
commit: e3c2af5d49bb96ad460ef6aa873975fb0f7c7f17

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

\
 
 \ /
  Last update: 2023-10-21 02:53    [W:0.040 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site