OSDN Git Service

MIPS: OCTEON: cvmx-bootmem: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Sat, 3 Dec 2022 06:17:16 +0000 (14:17 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 8 Dec 2022 10:34:51 +0000 (11:34 +0100)
commitef92750e11d2289fced9ff2ce211f8f790225c86
tree7738429b0623d7bc65a48f93865c16a774696100
parentf5739014669a734e42af9e73deb1ca165f49b5ae
MIPS: OCTEON: cvmx-bootmem: use strscpy() to instead of strncpy()

The implementation of strscpy() is more robust and safer.

Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/executive/cvmx-bootmem.c