Re: [PATCH linux-next] x86/mce/dev-mcelog: use strscpy() to instead of strncpy()

From: Ricardo Neri
Date: Wed Dec 14 2022 - 15:46:33 EST


On Sat, Dec 03, 2022 at 02:19:32PM +0800, yang.yang29@xxxxxxxxxx wrote:
> From: Xu Panda <xu.panda@xxxxxxxxxx>
>
> The implementation of strscpy() is more robust and safer.
> That's now the recommended way to copy NUL terminated strings.

It should read "NULL-terminated strings".

Thanks and BR,
Ricardo