Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thorsten Blum and committed by
Thomas Bogendoerfer
19b32dbb 5861bb3e

+2 -2
+2 -2
arch/mips/txx9/generic/setup.c
··· 200 200 static char cmdline[COMMAND_LINE_SIZE] __initdata; 201 201 char *s; 202 202 203 - strcpy(cmdline, arcs_cmdline); 203 + strscpy(cmdline, arcs_cmdline); 204 204 s = cmdline; 205 205 arcs_cmdline[0] = '\0'; 206 206 while (s && *s) { ··· 270 270 preprocess_cmdline(); 271 271 select_board(); 272 272 273 - strcpy(txx9_system_type, txx9_board_vec->system); 273 + strscpy(txx9_system_type, txx9_board_vec->system); 274 274 275 275 txx9_board_vec->prom_init(); 276 276 }