Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Christian Brauner
afd77d20 beb022ef

+1 -1
+1 -1
init/initramfs.c
··· 109 109 q->minor = minor; 110 110 q->ino = ino; 111 111 q->mode = mode; 112 - strcpy(q->name, name); 112 + strscpy(q->name, name); 113 113 q->next = NULL; 114 114 *p = q; 115 115 hardlink_seen = true;