[PATCH 01/10] net/nfp: use strlcpy for copying string
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 10 17:08:34 CEST 2024
On Thu, 10 Oct 2024 17:17:07 +0800
Chaoyong He <chaoyong.he at corigine.com> wrote:
> Replace 'snprintf()' with 'strlcpy()' where applicable.
> Using 'strlcpy()' is safe practice when copying strings, as it
> will include a null terminator.
>
> Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Long Wu <long.wu at corigine.com>
> Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
> ---
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list