We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180d0eb commit bd25c37Copy full SHA for bd25c37
arch/parisc/kernel/setup.c
@@ -56,7 +56,7 @@ void __init setup_cmdline(char **cmdline_p)
56
/* called from hpux boot loader */
57
boot_command_line[0] = '\0';
58
} else {
59
- strlcpy(boot_command_line, (char *)__va(boot_args[1]),
+ strscpy(boot_command_line, (char *)__va(boot_args[1]),
60
COMMAND_LINE_SIZE);
61
62
#ifdef CONFIG_BLK_DEV_INITRD
@@ -68,7 +68,7 @@ void __init setup_cmdline(char **cmdline_p)
68
#endif
69
}
70
71
- strcpy(command_line, boot_command_line);
+ strscpy(command_line, boot_command_line, COMMAND_LINE_SIZE);
72
*cmdline_p = command_line;
73
74
0 commit comments