diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-06 23:26:18 +0300 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-06-09 17:00:11 +0300 |
| commit | ea67ed6c6651d666010261a375189cd7149798c0 (patch) | |
| tree | 33da7d1a04ded0dbb80349745de450b172a0c222 | |
| parent | 160b2ef00f2a1b066a520432282293ccec8c3b6b (diff) | |
| download | linux-ea67ed6c6651d666010261a375189cd7149798c0.tar.xz | |
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>
| -rw-r--r-- | drivers/video/fbdev/mmp/fb/mmpfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mmp/fb/mmpfb.c b/drivers/video/fbdev/mmp/fb/mmpfb.c index 694587256e06..fc09d3ec3487 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; |
