Re: [PATCH net-next 1/3] net: dsa: microchip: copy string using strscpy

2024-10-13 Thread Daniel Machon
> Prior to this patch ksz_ptp_msg_irq_setup() uses snprintf() to copy > strings. It does so by passing strings as the format argument of > snprintf(). This appears to be safe, due to the absence of format > specifiers in the strings, which are declared within the same function. > But nonetheless GC

[PATCH net-next 1/3] net: dsa: microchip: copy string using strscpy

2024-10-11 Thread Simon Horman
Prior to this patch ksz_ptp_msg_irq_setup() uses snprintf() to copy strings. It does so by passing strings as the format argument of snprintf(). This appears to be safe, due to the absence of format specifiers in the strings, which are declared within the same function. But nonetheless GCC 14 warns