Re: [PATCH] ath5k: replace deprecated strncpy with strscpy

2023-10-18 Thread Kalle Valo
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 led->name to be NUL-terminated based on the presence of a > manual NUL-byte assignment. > > This NUL-b

Re: [PATCH] ath5k: replace deprecated strncpy with strscpy

2023-10-15 Thread Jiri Slaby
On 13. 10. 23, 22:53, 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 led->name to be NUL-terminated based on the presence of a manual NUL-byte assignment. This

[PATCH] ath5k: replace deprecated strncpy with strscpy

2023-10-13 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 led->name to be NUL-terminated based on the presence of a manual NUL-byte assignment. This NUL-byte assignment was added in Commit daf