summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-22 23:03:53 +0200
committerAndreas Larsson <andreas@gaisler.com>2025-09-26 17:27:06 +0200
commit9040d7c77e4d920c190ee2154d76e9daf4406de6 (patch)
tree21a9dd505d48401b931328d18f758912a0c61820
parentc7ae5d73b7af5723e7590015a570cd3cd397290b (diff)
sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop()
strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
-rw-r--r--arch/sparc/prom/tree_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/prom/tree_64.c b/arch/sparc/prom/tree_64.c
index 88793e5b0ab5..7388339bbd7e 100644
--- a/arch/sparc/prom/tree_64.c
+++ b/arch/sparc/prom/tree_64.c
@@ -272,7 +272,7 @@ char *prom_nextprop(phandle node, const char *oprop, char *buffer)
return buffer;
}
if (oprop == buffer) {
- strcpy (buf, oprop);
+ strscpy(buf, oprop);
oprop = buf;
}