fbdev: atyfb: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Wed, 28 Dec 2022 01:44:11 +0000 (09:44 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 28 Dec 2022 08:00:17 +0000 (09:00 +0100)
commit6b90032c73405cd4da29ab914df11fd1be960b99
tree38d960c0275cf9734f072c400b81a41c5371ee30
parent8d8cf163c8d8c93bccf0c70a133309693af9bf61
fbdev: atyfb: use strscpy() to instead of strncpy()

The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL-terminated strings.

Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/aty/atyfb_base.c