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: Jason Wang <wangborong@cdjrlc.com>
Link: https://lore.kernel.org/r/20210906134656.101088-1-wangborong@cdjrlc.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
This commit is contained in:
Jason Wang 2021-09-06 21:46:56 +08:00 committed by Krzysztof Kozlowski
parent 2aa717473c
commit aa51947171

View file

@ -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;
}