]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: atmel_lcdfb: Use strscpy() to copy device name
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:26:16 +0000 (21:26 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jun 2026 14:00:11 +0000 (16:00 +0200)
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/atmel_lcdfb.c

index 87406a5a2dcf37f29d6fae583924b6a9db6c4132..53f0156992e6dda50eeb308d98410b7f98e7d073 100644 (file)
@@ -1060,7 +1060,7 @@ static int atmel_lcdfb_probe(struct platform_device *pdev)
        info->fbops = &atmel_lcdfb_ops;
 
        info->fix = atmel_lcdfb_fix;
-       strcpy(info->fix.id, sinfo->pdev->name);
+       strscpy(info->fix.id, sinfo->pdev->name);
 
        /* Enable LCDC Clocks */
        sinfo->bus_clk = clk_get(dev, "hclk");