mirror of
https://github.com/torvalds/linux.git
synced 2025-11-30 23:16:01 +07:00
initramfs: Replace strcpy() with strscpy() in find_link()
strcpy() is deprecated; use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Justin Stitt <justinstitt@google.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
beb022ef92
commit
afd77d2050
@@ -109,7 +109,7 @@ static char __init *find_link(int major, int minor, int ino,
|
||||
q->minor = minor;
|
||||
q->ino = ino;
|
||||
q->mode = mode;
|
||||
strcpy(q->name, name);
|
||||
strscpy(q->name, name);
|
||||
q->next = NULL;
|
||||
*p = q;
|
||||
hardlink_seen = true;
|
||||
|
||||
Reference in New Issue
Block a user