mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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:
parent
6f43abc6f8
commit
81741fa5ac
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user