Re: [Intel-wired-lan] [PATCH] e100: replace deprecated strncpy with strscpy

2023-10-12 Thread Justin Stitt
On Mon, Oct 09, 2023 at 11:41:01PM +, 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. > > The "...-1" pattern makes it evident that netdev->name is expected to be >

[Intel-wired-lan] [PATCH] e100: replace deprecated strncpy with strscpy

2023-10-12 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. The "...-1" pattern makes it evident that netdev->name is expected to be NUL-terminated. Meanwhile, it seems NUL-padding is not required due to