]> git.ipfire.org Git - thirdparty/linux.git/commit
m68knommu: Replace deprecated strcpy with strscpy in init_ucsimm
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 18 Jan 2026 17:33:49 +0000 (18:33 +0100)
committerGreg Ungerer <gerg@kernel.org>
Tue, 27 Jan 2026 02:38:52 +0000 (12:38 +1000)
commita16ac6ca46d62bcbcbd7b01be0ef03fb39530d7b
tree61e9271dc21b3e675c3fcf2cd4a9ffdaa807b5bd
parent590fe2f46c8698bb758f9002cb247ca10ce95569
m68knommu: Replace deprecated strcpy with strscpy in init_ucsimm

strcpy() has been deprecated [1] because it performs no bounds checking
on the destination buffer, which can lead to buffer overflows. Replace
it with the safer strscpy().

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Greg Ungerer <gerg@kernel.org>
arch/m68k/68000/ucsimm.c