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

From: Jiri Pirko
Date: Fri Dec 09 2022 - 04:01:49 EST


Fri, Dec 09, 2022 at 08:34:49AM 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>