Re: [PATCH] iio: sx9324: replace deprecated strncpy

2023-10-26 Thread Justin Stitt
Hi Jonathan, On Sat, Sep 23, 2023 at 10:47 AM Jonathan Cameron wrote: > > On Thu, 21 Sep 2023 07:01:01 + > Justin Stitt wrote: > > > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > > > We should prefer more robust and less ambiguous string interfaces. > > > > `

Re: [PATCH] iio: sx9324: replace deprecated strncpy

2023-09-23 Thread Jonathan Cameron
On Thu, 21 Sep 2023 07:01:01 + Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > `prop` is defined as this string literal with size 30 (including null): > | #defin

[PATCH] iio: sx9324: replace deprecated strncpy

2023-09-21 Thread Justin Stitt
`strncpy` is deprecated for use on NUL-terminated destination strings [1]. We should prefer more robust and less ambiguous string interfaces. `prop` is defined as this string literal with size 30 (including null): | #define SX9324_PROXRAW_DEF "semtech,ph01-proxraw-strength" | char pro