mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
arch: blackfin: kernel: setup.c: Cleaning up missing null-terminate in conjunction with strncpy
Replacing strncpy with strlcpy to avoid strings that lacks null terminate. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Steven Miao <realmz6@gmail.com>
This commit is contained in:
parent
2fcc440ca6
commit
4eb147c83f
1 changed files with 1 additions and 1 deletions
|
@ -1464,5 +1464,5 @@ void __init cmdline_init(const char *r0)
|
||||||
{
|
{
|
||||||
early_shadow_stamp();
|
early_shadow_stamp();
|
||||||
if (r0)
|
if (r0)
|
||||||
strncpy(command_line, r0, COMMAND_LINE_SIZE);
|
strlcpy(command_line, r0, COMMAND_LINE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue