Re: [PATCH] habanalabs/goya: refactor deprecated strncpy

2023-08-25 Thread Justin Stitt
This patch as well as two other related patches were combined into a single patch [1] Thu, Aug 24, 2023 at 1:49 PM 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 N

Re: [PATCH] habanalabs/goya: refactor deprecated strncpy

2023-08-25 Thread Stanislaw Gruszka
On Thu, Aug 24, 2023 at 08:49:11PM +, 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_ the case f

[PATCH] habanalabs/goya: refactor deprecated strncpy

2023-08-24 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_ the case for `strncpy`! Link: www.kernel.org/doc/html/latest/process/deprecated.