mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 03:27:30 -04: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:
committed by
Helge Deller
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;
|
||||
|
||||
Reference in New Issue
Block a user