]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: mmpfb: Use strscpy() to copy device name
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:26:18 +0000 (21:26 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jun 2026 14:00:11 +0000 (16:00 +0200)
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/mmp/fb/mmpfb.c

index 694587256e065857319075769f54935a3843c33d..fc09d3ec3487fc09b2f131b82475c43c900dff40 100644 (file)
@@ -502,7 +502,7 @@ static int fb_info_setup(struct fb_info *info,
        info->flags = FBINFO_PARTIAL_PAN_OK |
                FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
        info->node = -1;
-       strcpy(info->fix.id, fbi->name);
+       strscpy(info->fix.id, fbi->name);
        info->fix.type = FB_TYPE_PACKED_PIXELS;
        info->fix.type_aux = 0;
        info->fix.xpanstep = 0;