From: Zhao Hongjiang Date: Sun, 9 Jun 2013 08:57:58 +0000 (+0800) Subject: sparc: kernel: using strlcpy() instead of strcpy() X-Git-Tag: v3.10-rc7~22^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=117a0c5fc9c2d06045bd217385b2b39ea426b5a6;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed