Commit aa519471 authored by Jason Wang's avatar Jason Wang Committed by Krzysztof Kozlowski
Browse files

ARM: s3c: Use strscpy to replace strlcpy



The strlcpy should not be used because it doesn't limit the source
length.  Preferred is strscpy.

Signed-off-by: default avatarJason Wang <wangborong@cdjrlc.com>
Link: https://lore.kernel.org/r/20210906134656.101088-1-wangborong@cdjrlc.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent 2aa71747
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ static char mini6410_features_str[12] __initdata = "0";
static int __init mini6410_features_setup(char *str)
{
	if (str)
		strlcpy(mini6410_features_str, str,
		strscpy(mini6410_features_str, str,
			sizeof(mini6410_features_str));
	return 1;
}