mirror of https://github.com/torvalds/linux.git
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:
parent
5861bb3ea2
commit
19b32dbba0
|
|
@ -200,7 +200,7 @@ static void __init preprocess_cmdline(void)
|
|||
static char cmdline[COMMAND_LINE_SIZE] __initdata;
|
||||
char *s;
|
||||
|
||||
strcpy(cmdline, arcs_cmdline);
|
||||
strscpy(cmdline, arcs_cmdline);
|
||||
s = cmdline;
|
||||
arcs_cmdline[0] = '\0';
|
||||
while (s && *s) {
|
||||
|
|
@ -270,7 +270,7 @@ void __init prom_init(void)
|
|||
preprocess_cmdline();
|
||||
select_board();
|
||||
|
||||
strcpy(txx9_system_type, txx9_board_vec->system);
|
||||
strscpy(txx9_system_type, txx9_board_vec->system);
|
||||
|
||||
txx9_board_vec->prom_init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue