File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,17 +66,17 @@ void __init setup_arch(char **cmdline_p)
66
66
on_simulator = 0 ;
67
67
68
68
if (p [0 ] != '\0' )
69
- strlcpy (boot_command_line , p , COMMAND_LINE_SIZE );
69
+ strscpy (boot_command_line , p , COMMAND_LINE_SIZE );
70
70
else
71
- strlcpy (boot_command_line , default_command_line ,
71
+ strscpy (boot_command_line , default_command_line ,
72
72
COMMAND_LINE_SIZE );
73
73
74
74
/*
75
75
* boot_command_line and the value set up by setup_arch
76
76
* are both picked up by the init code. If no reason to
77
77
* make them different, pass the same pointer back.
78
78
*/
79
- strlcpy (cmd_line , boot_command_line , COMMAND_LINE_SIZE );
79
+ strscpy (cmd_line , boot_command_line , COMMAND_LINE_SIZE );
80
80
* cmdline_p = cmd_line ;
81
81
82
82
parse_early_param ();
You can’t perform that action at this time.
0 commit comments