Re: [PATCH net-next v2] myri10ge: use strscpy() to instead of strncpy()

From: Jiri Pirko
Date: Fri Dec 09 2022 - 04:03:00 EST


Fri, Dec 09, 2022 at 08:37:29AM CET, 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>

Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>