From: Thorsten Blum Date: Mon, 22 Sep 2025 21:03:53 +0000 (+0200) Subject: sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9040d7c77e4d920c190ee2154d76e9daf4406de6;p=thirdparty%2Fkernel%2Fstable.git 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 Reviewed-by: Andreas Larsson Signed-off-by: Andreas Larsson --- diff --git a/arch/sparc/prom/tree_64.c b/arch/sparc/prom/tree_64.c index 88793e5b0ab56..7388339bbd7e7 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; }