aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-04-22 09:42:55 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2025-04-27 09:47:09 +0200
commit9f6d908adabc11e5b407743696dbb333894b022e (patch)
tree36631b34c03fe4f3f8e39e1efeeb4398b6eee823
parentmips: ptrace: Improve code formatting and indentation (diff)
downloadwireguard-linux-9f6d908adabc11e5b407743696dbb333894b022e.tar.xz
wireguard-linux-9f6d908adabc11e5b407743696dbb333894b022e.zip
MIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init()
strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Cc: linux-hardening@vger.kernel.org Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r--arch/mips/bcm63xx/boards/board_bcm963xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 9cc8fbf218a5..c5617b889b1c 100644
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -764,7 +764,7 @@ void __init board_prom_init(void)
snprintf(cfe_version, 12, "%s", (char *) &cfe[4]);
}
} else {
- strcpy(cfe_version, "unknown");
+ strscpy(cfe_version, "unknown");
}
pr_info("CFE version: %s\n", cfe_version);