mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
fbdev: mmpfb: 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
160b2ef00f
commit
ea67ed6c66
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user