Commit c241d049 authored by XueBing Chen's avatar XueBing Chen Committed by Krzysztof Kozlowski

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 avatarXueBing Chen <chenxuebing@jari.cn>
Link: https://lore.kernel.org/r/3e0217ca.a1d.180f90f39c7.Coremail.chenxuebing@jari.cnSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent f2906aa8
......@@ -624,7 +624,7 @@ static char mini2440_features_str[12] __initdata = "0tb";
static int __init mini2440_features_setup(char *str)
{
if (str)
strlcpy(mini2440_features_str, str,
strscpy(mini2440_features_str, str,
sizeof(mini2440_features_str));
return 1;
}
......
Markdown is supported
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