mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
committed by
Andreas Larsson
parent
c7ae5d73b7
commit
9040d7c77e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user