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

2023-10-12 Thread Justin Stitt
On Tue, Oct 10, 2023 at 06:35:59PM +, 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. > > We can see that netdev->name is expected to be NUL-terminated based on > i

[Intel-wired-lan] [PATCH] e1000: 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. We can see that netdev->name is expected to be NUL-terminated based on it's usage with format strings: | pr_info("%s NIC Link is Down\n", |