Skip to content
Commit 117a0c5f authored by Zhao Hongjiang's avatar Zhao Hongjiang Committed by David S. Miller
Browse files

sparc: kernel: using strlcpy() instead of strcpy()



'boot_command_line' and 'full_boot_str' has a fix length, 'cmdline_p' and
'boot_command' maybe larger than them. So use strlcpy() instead of strcpy()
to avoid memory overflow.

Signed-off-by: default avatarZhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 242ece22
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