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>
This commit is contained in:
Thorsten Blum
2025-09-22 23:03:53 +02:00
committed by Andreas Larsson
parent c7ae5d73b7
commit 9040d7c77e

View 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;
}