diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-06 23:26:17 +0300 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-06-09 17:00:11 +0300 |
| commit | 81741fa5acdad51976393934cd343e2e3bcaef35 (patch) | |
| tree | 2d4d783df62c20e1e2e2b3ee0823a9528778ed29 | |
| parent | 6f43abc6f888d12b5dc3d8c1a74be46e31357381 (diff) | |
| download | linux-81741fa5acdad51976393934cd343e2e3bcaef35.tar.xz | |
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>
| -rw-r--r-- | drivers/video/fbdev/cyber2000fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/cyber2000fb.c b/drivers/video/fbdev/cyber2000fb.c index 3daba94c6c13..5c7349722125 100644 --- a/drivers/video/fbdev/cyber2000fb.c +++ b/drivers/video/fbdev/cyber2000fb.c @@ -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; |
