]> Gentwo Git Trees - linux/.git/commit
m68k: mm: Replace deprecated strncpy() with strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 13 Feb 2025 14:10:36 +0000 (15:10 +0100)
committerGreg Ungerer <gerg@kernel.org>
Sun, 23 Feb 2025 22:22:30 +0000 (08:22 +1000)
commit63014a9e119f6008069db90c9df5eb76110f9823
tree46ebe513ba89b970a97c9fb1e5980a3103c57b08
parenta3f6864ebb8d4a8b4576ad2ce3195c63db4d55d4
m68k: mm: 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>
Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/kernel/setup_mm.c