Re: [PATCH] ASoC: fsl_micfil: refactor deprecated strncpy

2023-07-28 Thread Mark Brown
On Thu, 27 Jul 2023 22:26:41 +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > A suitable replacement is `strscpy` [2] due to the fact that it > guarantees NUL-termination on its destination buffer argument which is > _not_ always the case

Re: [PATCH] ASoC: fsl_micfil: refactor deprecated strncpy

2023-07-28 Thread Shengjiu Wang
On Fri, Jul 28, 2023 at 6:26 AM Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > A suitable replacement is `strscpy` [2] due to the fact that it > guarantees NUL-termination on its destination buffer argument which is > _not_ always the case for

[PATCH] ASoC: fsl_micfil: refactor deprecated strncpy

2023-07-27 Thread Justin Stitt
`strncpy` is deprecated for use on NUL-terminated destination strings [1]. A suitable replacement is `strscpy` [2] due to the fact that it guarantees NUL-termination on its destination buffer argument which is _not_ always the case for `strncpy`! In this case, though, there was great care taken t