]> www.infradead.org Git - users/dwmw2/linux.git/commit
MIPS: Loongson2ef: Replace deprecated strncpy() with strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 24 Feb 2025 21:54:50 +0000 (22:54 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 27 Feb 2025 09:40:01 +0000 (10:40 +0100)
commit1bea9ab46d9f9871b71b078192699fc94287fcc4
treee8ba8025b1227ba4ec0c33eb75b6637967d850cd
parent232085d118ff4695c0e9992ebc7ba4da7a24875e
MIPS: Loongson2ef: Replace deprecated strncpy() with strscpy()

strncpy() is deprecated for NUL-terminated destination buffers. Use
strscpy() instead and remove the manual NUL-termination.

Compile-tested only.

Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson2ef/common/machtype.c