m68k: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Sat, 3 Dec 2022 06:10:56 +0000 (14:10 +0800)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 4 Dec 2022 23:07:21 +0000 (09:07 +1000)
commitaf5d74e32eb8e1b833f687047f0ffe3801d7229d
tree5f8eb1caebd1ab859481994cf8bd63f5b943223d
parent76dcd734eca23168cb008912c0f69ff408905235
m68k: 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>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/kernel/setup_no.c