Re: [PATCH] atmel: replace deprecated strncpy/strcpy with strscpy

2023-10-18 Thread Kees Cook
On Mon, Oct 16, 2023 at 08:22:45PM +, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. strcpy() is also deprecated [2] and shouldn't be used. Since these are read-o

[PATCH] atmel: replace deprecated strncpy/strcpy with strscpy

2023-10-16 Thread Justin Stitt
strncpy() is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. strcpy() is also deprecated [2] and shouldn't be used. We expect priv->firmware_id to be NUL-terminated based on its usage with seq_printf() and