summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/tgafb.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2022-08-18 23:01:17 +0200
committerHelge Deller <deller@gmx.de>2022-08-24 22:06:15 +0200
commit8d0268585b9c07dd01b77b63913a4f31ad99239b (patch)
treea764a5aa61cae829518b2540f65affec55f632f4 /drivers/video/fbdev/tgafb.c
parent144c467398aa9fb274583590c848e6d6388e89d9 (diff)
downloadlinux-stable-8d0268585b9c07dd01b77b63913a4f31ad99239b.tar.gz
linux-stable-8d0268585b9c07dd01b77b63913a4f31ad99239b.tar.bz2
linux-stable-8d0268585b9c07dd01b77b63913a4f31ad99239b.zip
fbdev: Move fbdev drivers from strlcpy to strscpy
Follow the advice of the below link and prefer 'strscpy' in this subsystem. Conversion is 1:1 because the return value is not used. Generated by a coccinelle script. Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/ Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/tgafb.c')
-rw-r--r--drivers/video/fbdev/tgafb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/tgafb.c b/drivers/video/fbdev/tgafb.c
index ae0cf5540636..1fff5fd7ab51 100644
--- a/drivers/video/fbdev/tgafb.c
+++ b/drivers/video/fbdev/tgafb.c
@@ -1344,7 +1344,7 @@ tgafb_init_fix(struct fb_info *info)
memory_size = 16777216;
}
- strlcpy(info->fix.id, tga_type_name, sizeof(info->fix.id));
+ strscpy(info->fix.id, tga_type_name, sizeof(info->fix.id));
info->fix.type = FB_TYPE_PACKED_PIXELS;
info->fix.type_aux = 0;