From: David Laight Date: Sat, 6 Jun 2026 20:26:16 +0000 (+0100) Subject: fbdev: atmel_lcdfb: Use strscpy() to copy device name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f43abc6f888d12b5dc3d8c1a74be46e31357381;p=thirdparty%2Flinux.git fbdev: atmel_lcdfb: Use strscpy() to copy device name Signed-off-by: David Laight Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index 87406a5a2dcf3..53f0156992e6d 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -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");