From 9bf77b473bf131e75b63a574ac1a72e2f43bf6c4 Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 23 Jan 2024 14:27:26 +0000 Subject: [PATCH] drm: apple: use strscpy() in place of strlcpy() From Arnd Bergmann 2501a971dbec631932aba9aba55b7b61b7c3c390 in jannau's bits/200-dcp --- sys/dev/pci/drm/apple/afk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/apple/afk.c b/sys/dev/pci/drm/apple/afk.c index d844eec43b3..de483acae24 100644 --- a/sys/dev/pci/drm/apple/afk.c +++ b/sys/dev/pci/drm/apple/afk.c @@ -237,7 +237,7 @@ static void afk_recv_handle_init(struct apple_dcp_afkep *ep, u32 channel, return; } - strlcpy(name, payload, sizeof(name)); + strscpy(name, payload, sizeof(name)); /* * in DCP firmware 13.2 DCP reports interface-name as name which starts -- 2.20.1