Skip to content

Commit 5cd39d0

Browse files
tobluxtsbogend
authored andcommitted
MIPS: sgi-ip32: Replace deprecated strcpy() in plat_mem_setup()
strcpy() is deprecated; use strscpy() instead. Link: KSPP#88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent e5a6d4a commit 5cd39d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/mips/sgi-ip32/ip32-setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/interrupt.h>
1515
#include <linux/param.h>
1616
#include <linux/sched.h>
17+
#include <linux/string.h>
1718

1819
#include <asm/bootinfo.h>
1920
#include <asm/mipsregs.h>
@@ -90,7 +91,7 @@ void __init plat_mem_setup(void)
9091
static char options[8] __initdata;
9192
char *baud = ArcGetEnvironmentVariable("dbaud");
9293
if (baud)
93-
strcpy(options, baud);
94+
strscpy(options, baud);
9495
add_preferred_console("ttyS", *(con + 1) == '2' ? 1 : 0,
9596
baud ? options : NULL);
9697
}

0 commit comments

Comments
 (0)