[PATCH] net/mlx5: fix build with GCC 12 and ASan

David Marchand david.marchand at redhat.com
Wed Mar 15 11:05:10 CET 2023


On Tue, Mar 14, 2023 at 2:00 PM Slava Ovsiienko <viacheslavo at nvidia.com> wrote:
>
> Hi, David
>
> Thank you for the fix.
> I see the quite similar strncpy() usage in mlx5_xstats_get_names() routine.
> Does compiler complain about?

Strangely.. no.
But we could switch to strlcpy too.
What is your preferrence?


-- 
David Marchand



More information about the dev mailing list