Skip to content

Commit 9f6d908

Browse files
tobluxtsbogend
authored andcommitted
MIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init()
strcpy() is deprecated; use strscpy() instead. Link: KSPP/linux#88 Cc: [email protected] Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent cd956a5 commit 9f6d908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/bcm63xx/boards/board_bcm963xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ void __init board_prom_init(void)
764764
snprintf(cfe_version, 12, "%s", (char *) &cfe[4]);
765765
}
766766
} else {
767-
strcpy(cfe_version, "unknown");
767+
strscpy(cfe_version, "unknown");
768768
}
769769
pr_info("CFE version: %s\n", cfe_version);
770770

0 commit comments

Comments
 (0)