Re: [PATCH] mips: setup: use strscpy to replace strlcpy

From: Thomas Bogendoerfer
Date: Mon May 23 2022 - 06:30:48 EST


On Sun, May 22, 2022 at 03:46:18PM +0800, 陈学兵 wrote:
>
> The strlcpy should not be used because it doesn't limit the source
> length. Preferred is strscpy.
>
> Signed-off-by: XueBing Chen <chenxuebing@xxxxxxx>
> ---
> arch/mips/kernel/setup.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]