# \[PATCH 14/35\] fbdev: vt8623fb: Use safer strscpy() instead of strcpy()

- From: Ai Chao \<hidden\>
- Date: 2026-04-25 07:00:21 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2026/04/3528975
- Thread: https://ratatoskr.run/linux-fbdev/2026/04/3528984/t.md

```text
Use a safer function strscpy() instead of strcpy() for copying to arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Ai Chao <redacted>
---
 drivers/video/fbdev/vt8623fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/vt8623fb.c b/drivers/video/fbdev/vt8623fb.c
index df984f3a7ff6..521b60b8b3e4 100644
--- a/drivers/video/fbdev/vt8623fb.c
+++ b/drivers/video/fbdev/vt8623fb.c
@@ -752,7 +752,7 @@ static int vt8623_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
 	}
 
 	info->fix.smem_len = info->screen_size;
-	strcpy(info->fix.id, "VIA VT8623");
+	strscpy(info->fix.id, "VIA VT8623");
 	info->fix.type = FB_TYPE_PACKED_PIXELS;
 	info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
 	info->fix.ypanstep = 0;
-- 
2.34.1

```
