MIPS: txx9: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated; use strscpy() instead.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
Thorsten Blum 2025-08-17 20:37:14 +02:00 committed by Thomas Bogendoerfer
parent 5861bb3ea2
commit 19b32dbba0
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ static void __init preprocess_cmdline(void)
static char cmdline[COMMAND_LINE_SIZE] __initdata; static char cmdline[COMMAND_LINE_SIZE] __initdata;
char *s; char *s;
strcpy(cmdline, arcs_cmdline); strscpy(cmdline, arcs_cmdline);
s = cmdline; s = cmdline;
arcs_cmdline[0] = '\0'; arcs_cmdline[0] = '\0';
while (s && *s) { while (s && *s) {
@ -270,7 +270,7 @@ void __init prom_init(void)
preprocess_cmdline(); preprocess_cmdline();
select_board(); select_board();
strcpy(txx9_system_type, txx9_board_vec->system); strscpy(txx9_system_type, txx9_board_vec->system);
txx9_board_vec->prom_init(); txx9_board_vec->prom_init();
} }