From: Thorsten Blum Date: Sun, 17 Aug 2025 18:37:11 +0000 (+0200) Subject: MIPS: sgi-ip22: Replace deprecated strcpy() in plat_mem_setup() X-Git-Tag: v6.18-rc1~69^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5a6d4a23acfe56749c7543ef55c54b8b903616b;p=thirdparty%2Fkernel%2Flinux.git MIPS: sgi-ip22: Replace deprecated strcpy() in plat_mem_setup() strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum Reviewed-by: Justin Stitt Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/sgi-ip22/ip22-setup.c b/arch/mips/sgi-ip22/ip22-setup.c index e06a818fe7928..f083b25be13b2 100644 --- a/arch/mips/sgi-ip22/ip22-setup.c +++ b/arch/mips/sgi-ip22/ip22-setup.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -65,7 +66,7 @@ void __init plat_mem_setup(void) static char options[8] __initdata; char *baud = ArcGetEnvironmentVariable("dbaud"); if (baud) - strcpy(options, baud); + strscpy(options, baud); add_preferred_console("ttyS", *(ctype + 1) == '2' ? 1 : 0, baud ? options : NULL); } else if (!ctype || *ctype != 'g') {