Re: [PATCH net-next] tracing: ipv6: Replace deprecated strcpy() with strscpy()
From: Thorsten Blum
Date: Wed Jul 23 2025 - 13:47:08 EST
Hi Steve,
On 14. Jul 2025, at 09:38, Steven Rostedt wrote:
>
> Hmm, why is that string hard coded to 16 bytes and doesn't use the
> dynamic string facility? Perhaps something like this?
Your commit fca8300f68fe3 changed it from __dynamic_array() to __array()
and __string() seems to be just a special version of __dynamic_array()
with a length of -1.
In the commit description you wrote: "Since the size of the name is at
most 16 bytes (defined by IFNAMSIZ), it is not worth spending the effort
to determine the size of the string."
Thanks,
Thorsten