Re: [PATCH] powerpc/ps3: refactor strncpy usage

From: Michael Ellerman
Date: Wed Aug 23 2023 - 08:04:50 EST


On Wed, 16 Aug 2023 21:39:24 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> `make_first_field()` should use similar implementation to `make_field()`
> due to memcpy having more obvious behavior here. The end result yields
> the same behavior as the previous `strncpy`-based implementation
> including the NUL-padding.
>
> [...]

Applied to powerpc/next.

[1/1] powerpc/ps3: refactor strncpy usage
https://git.kernel.org/powerpc/c/f94a84a0914841d79a38df7cc75512d88b31a0dc

cheers