]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: s3c: Use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Wed, 25 May 2022 02:32:46 +0000 (10:32 +0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 7 Jun 2022 12:40:24 +0000 (14:40 +0200)
commitc241d049122b49698d9094c7ee7a0215fbc04cfe
tree1a3ec4f1e19513ff55bc89dce2a0bc36c970adcd
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
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 <chenxuebing@jari.cn>
Link: https://lore.kernel.org/r/3e0217ca.a1d.180f90f39c7.Coremail.chenxuebing@jari.cn
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/mach-s3c/mach-mini2440.c