sparc: kernel: using strlcpy() instead of strcpy()
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Sun, 9 Jun 2013 08:57:58 +0000 (16:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2013 09:10:29 +0000 (02:10 -0700)
commit117a0c5fc9c2d06045bd217385b2b39ea426b5a6
tree5023fb469da9fc796e80a1fdb919a2cad0d4cedb
parent242ece22f0bd90e237365e51c5bd90a21693d6c3
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: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ds.c
arch/sparc/kernel/setup_32.c
arch/sparc/kernel/setup_64.c