From: kettenis Date: Tue, 23 Jan 2024 14:27:26 +0000 (+0000) Subject: drm: apple: use strscpy() in place of strlcpy() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9bf77b473bf131e75b63a574ac1a72e2f43bf6c4;p=openbsd drm: apple: use strscpy() in place of strlcpy() From Arnd Bergmann 2501a971dbec631932aba9aba55b7b61b7c3c390 in jannau's bits/200-dcp --- 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