Re: [PATCH linux-next] of: base: use strscpy() to instead of strncpy()

From: Rob Herring
Date: Tue Jan 03 2023 - 19:32:37 EST



On Fri, 23 Dec 2022 10:39:12 +0800, yang.yang29@xxxxxxxxxx wrote:
> From: Xu Panda <xu.panda@xxxxxxxxxx>
>
> The implementation of strscpy() is more robust and safer.
> That's now the recommended way to copy NUL terminated strings.
>
> Signed-off-by: Xu Panda <xu.panda@xxxxxxxxxx>
> Signed-off-by: Yang Yang <yang.yang29@xxxxxxx>
> ---
> drivers/of/base.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>

Applied, thanks!