aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c
diff options
context:
space:
mode:
authorGravatar Jason Wang <wangborong@cdjrlc.com> 2021-09-06 21:46:56 +0800
committerGravatar Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 2021-09-20 10:13:47 +0200
commitaa519471715ce73034ffaa52fc85681de31c1acf (patch)
treed220ff89de7c563d30421b52f2c9e24b1253e0bd /arch/arm/mach-s3c
parentARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc() (diff)
downloadlinux-aa519471715ce73034ffaa52fc85681de31c1acf.tar.gz
linux-aa519471715ce73034ffaa52fc85681de31c1acf.tar.bz2
linux-aa519471715ce73034ffaa52fc85681de31c1acf.zip
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>
Diffstat (limited to 'arch/arm/mach-s3c')
-rw-r--r--arch/arm/mach-s3c/mach-mini6410.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c/mach-mini6410.c b/arch/arm/mach-s3c/mach-mini6410.c
index 741fa1f09694..c14c2e27127b 100644
--- a/arch/arm/mach-s3c/mach-mini6410.c
+++ b/arch/arm/mach-s3c/mach-mini6410.c
@@ -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;
}