Re: [PATCH] accel/ivpu: refactor deprecated strncpy

2023-08-25 Thread Stanislaw Gruszka
On Thu, Aug 24, 2023 at 09:20:25PM +, 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] accel/ivpu: 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`! Also remove extraneous if-statement as it can never be en