fbdev: cyber2000fb: Use strscpy() to copy device name

Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
David Laight 2026-06-06 21:26:17 +01:00 committed by Helge Deller
parent 6f43abc6f8
commit 81741fa5ac

View 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;