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

From: Dan Carpenter
Date: Thu Dec 29 2022 - 05:00:22 EST


On Mon, Dec 26, 2022 at 07:05:47PM +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>
> ---

Looks good.

Reviewed-by: Dan Carpenter <error27@xxxxxxxxx>

regards,
dan carpenter