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 76dcd73 commit af5d74eCopy full SHA for af5d74e
arch/m68k/kernel/setup_no.c
@@ -90,8 +90,7 @@ void __init setup_arch(char **cmdline_p)
90
config_BSP(&command_line[0], sizeof(command_line));
91
92
#if defined(CONFIG_BOOTPARAM)
93
- strncpy(&command_line[0], CONFIG_BOOTPARAM_STRING, sizeof(command_line));
94
- command_line[sizeof(command_line) - 1] = 0;
+ strscpy(&command_line[0], CONFIG_BOOTPARAM_STRING, sizeof(command_line));
95
#endif /* CONFIG_BOOTPARAM */
96
97
process_uboot_commandline(&command_line[0], sizeof(command_line));
0 commit comments