mirror of https://github.com/torvalds/linux.git
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:
parent
beb022ef92
commit
afd77d2050
|
|
@ -109,7 +109,7 @@ static char __init *find_link(int major, int minor, int ino,
|
||||||
q->minor = minor;
|
q->minor = minor;
|
||||||
q->ino = ino;
|
q->ino = ino;
|
||||||
q->mode = mode;
|
q->mode = mode;
|
||||||
strcpy(q->name, name);
|
strscpy(q->name, name);
|
||||||
q->next = NULL;
|
q->next = NULL;
|
||||||
*p = q;
|
*p = q;
|
||||||
hardlink_seen = true;
|
hardlink_seen = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue