]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: cyber2000fb: Use strscpy() to copy device name
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:26:17 +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/cyber2000fb.c

index 3daba94c6c13eb096a87ee3e9bc310d356106688..5c73497221259e8ba7c837c8cfc4af4d3eba54cc 100644 (file)
@@ -1384,7 +1384,7 @@ static struct cfb_info *cyberpro_alloc_fb_info(unsigned int id, char *name)
        else
                cfb->divisors[3] = 6;
 
-       strcpy(cfb->fb.fix.id, name);
+       strscpy(cfb->fb.fix.id, name);
 
        cfb->fb.fix.type        = FB_TYPE_PACKED_PIXELS;
        cfb->fb.fix.type_aux    = 0;