Re: [PATCH] platform/x86: hp-bioscfg: Replace deprecated strncpy() with strscpy()

2025-03-03 Thread Ilpo Järvinen
On Wed, 26 Feb 2025 00:21:27 +0100, Thorsten Blum wrote: > Since kstrtol() requires a NUL-terminated string as input and strncpy() > is deprecated for NUL-terminated destination buffers, use strscpy() > instead. > > Compile-tested only. > > > [...] Thank you for your contribution, it has been

[PATCH] platform/x86: hp-bioscfg: Replace deprecated strncpy() with strscpy()

2025-02-25 Thread Thorsten Blum
Since kstrtol() requires a NUL-terminated string as input and strncpy() is deprecated for NUL-terminated destination buffers, use strscpy() instead. Compile-tested only. Link: https://github.com/KSPP/linux/issues/90 Cc: linux-hardening@vger.kernel.org Signed-off-by: Thorsten Blum --- drivers/pl