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 3d222eb commit a713091Copy full SHA for a713091
arch/m68k/kernel/setup_mm.c
@@ -243,8 +243,7 @@ void __init setup_arch(char **cmdline_p)
243
setup_initial_init_mm((void *)PAGE_OFFSET, _etext, _edata, _end);
244
245
#if defined(CONFIG_BOOTPARAM)
246
- strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
247
- m68k_command_line[CL_SIZE - 1] = 0;
+ strscpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
248
#endif /* CONFIG_BOOTPARAM */
249
process_uboot_commandline(&m68k_command_line[0], CL_SIZE);
250
*cmdline_p = m68k_command_line;
0 commit comments