From: Thorsten Blum Date: Fri, 25 Apr 2025 07:46:48 +0000 (+0200) Subject: MIPS: Replace strcpy() with strscpy() in vpe_elfload() X-Git-Tag: v6.16-rc1~34^2~12 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3b3704261e851e25983860e4c352f1f73786f4ab;p=linux-block.git MIPS: Replace strcpy() with strscpy() in vpe_elfload() strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 737d0d4fdcd3..2b67c44adab9 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -582,7 +583,7 @@ static int vpe_elfload(struct vpe *v) struct module mod; /* so we can re-use the relocations code */ memset(&mod, 0, sizeof(struct module)); - strcpy(mod.name, "VPE loader"); + strscpy(mod.name, "VPE loader"); hdr = (Elf_Ehdr *) v->pbuffer; len = v->plen;