]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 22 Sep 2025 21:03:53 +0000 (23:03 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 26 Sep 2025 15:27:06 +0000 (17:27 +0200)
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>
arch/sparc/prom/tree_64.c

index 88793e5b0ab563156432682034a66484c742f584..7388339bbd7e73c61f9004766a9914a8be6a4dc5 100644 (file)
@@ -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;
        }