Skip to content

Commit 9040d7c

Browse files
tobluxandreas-gaisler
authored andcommitted
sparc64: Replace deprecated strcpy() with strscpy() in prom_nextprop()
strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: KSPP#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>
1 parent c7ae5d7 commit 9040d7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/sparc/prom/tree_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ char *prom_nextprop(phandle node, const char *oprop, char *buffer)
272272
return buffer;
273273
}
274274
if (oprop == buffer) {
275-
strcpy (buf, oprop);
275+
strscpy(buf, oprop);
276276
oprop = buf;
277277
}
278278

0 commit comments

Comments
 (0)