fbdev: omapfb: use strscpy() to instead of strncpy()
authorXu Panda <xu.panda@zte.com.cn>
Wed, 28 Dec 2022 01:40:01 +0000 (09:40 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 28 Dec 2022 08:00:16 +0000 (09:00 +0100)
commit8d8cf163c8d8c93bccf0c70a133309693af9bf61
tree3c1a8905c7e53a7c4558e6d1489e257e051b80d8
parent9d8b5376cc2848ca22314fdec9a7a45b1bf69189
fbdev: omapfb: 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/omap/omapfb_main.c