Skip to content

Commit 19b32db

Browse files
tobluxtsbogend
authored andcommitted
MIPS: txx9: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated; use strscpy() instead. Link: KSPP#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>
1 parent 5861bb3 commit 19b32db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/mips/txx9/generic/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static void __init preprocess_cmdline(void)
200200
static char cmdline[COMMAND_LINE_SIZE] __initdata;
201201
char *s;
202202

203-
strcpy(cmdline, arcs_cmdline);
203+
strscpy(cmdline, arcs_cmdline);
204204
s = cmdline;
205205
arcs_cmdline[0] = '\0';
206206
while (s && *s) {
@@ -270,7 +270,7 @@ void __init prom_init(void)
270270
preprocess_cmdline();
271271
select_board();
272272

273-
strcpy(txx9_system_type, txx9_board_vec->system);
273+
strscpy(txx9_system_type, txx9_board_vec->system);
274274

275275
txx9_board_vec->prom_init();
276276
}

0 commit comments

Comments
 (0)