From: David Laight Date: Sat, 6 Jun 2026 20:26:18 +0000 (+0100) Subject: fbdev: mmpfb: Use strscpy() to copy device name X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ea67ed6c6651d666010261a375189cd7149798c0;p=thirdparty%2Flinux.git fbdev: mmpfb: Use strscpy() to copy device name Signed-off-by: David Laight Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/mmp/fb/mmpfb.c b/drivers/video/fbdev/mmp/fb/mmpfb.c index 694587256e065..fc09d3ec3487f 100644 --- a/drivers/video/fbdev/mmp/fb/mmpfb.c +++ b/drivers/video/fbdev/mmp/fb/mmpfb.c @@ -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;