Commit 4eb147c8 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Steven Miao

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarSteven Miao <realmz6@gmail.com>
parent 2fcc440c
...@@ -1464,5 +1464,5 @@ void __init cmdline_init(const char *r0) ...@@ -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);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment