Skip to content

Commit aa51947

Browse files
Jason Wangkrzk
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 2aa7174 commit aa51947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-s3c/mach-mini6410.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static char mini6410_features_str[12] __initdata = "0";
262262
static int __init mini6410_features_setup(char *str)
263263
{
264264
if (str)
265-
strlcpy(mini6410_features_str, str,
265+
strscpy(mini6410_features_str, str,
266266
sizeof(mini6410_features_str));
267267
return 1;
268268
}

0 commit comments

Comments
 (0)