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

2023-10-12 Thread Justin Stitt
On Tue, Oct 10, 2023 at 09:15:39PM +, 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 expect netdev->name to be NUL-terminated based on its use with format >

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

2023-10-12 Thread Justin Stitt
On Tue, Oct 10, 2023 at 2:22 PM Jesse Brandeburg wrote: > > On 10/10/2023 2:15 PM, 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 expect netdev->name

[Intel-wired-lan] [PATCH] igc: 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 expect netdev->name to be NUL-terminated based on its use with format strings: | if (q_vector->rx.ring && q_vector->tx.ring) |

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

2023-10-10 Thread Jesse Brandeburg
On 10/10/2023 2:15 PM, 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 expect netdev->name to be NUL-terminated based on its use with format > strings: > |