ARM: s3c: Use strscpy to replace strlcpy
Subsystems (3)
PATCH v2 1/1 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 XueBing Chen <[email protected]>
--- arch/arm/mach-s3c/mach-mini2440.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-s3c/mach-mini2440.c +1 -1
@@ -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 ; }
Signature · 1 line
2.36.1
Krzysztof Kozlowski
AppliedQuoted 4 lines · XueBing Chen
The strlcpy should not be used because it doesn't limit the source length. Preferred is strscpy.
Applied, thanks!
[1/1] ARM: s3c: Use strscpy to replace strlcpy
https://git.kernel.org/krzk/linux/c/c241d049122b49698d9094c7ee7a0215fbc04cfe
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>