lkml.org 
[lkml]   [2023]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: (subset) [PATCH] mfd: db8500-prcmu: replace deprecated strncpy with strscpy
Date
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 [李琼斯]

\
 
 \ /
  Last update: 2023-10-05 17:28    [W:0.061 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site