Re: [PATCH] ALSA: usb-audio: Use strscpy() in append_ctl_name()

From: Takashi Iwai

Date: Wed Oct 21 2026 - 09:08:44 EST


On Wed, 21 Oct 2026 12:58:26 +0200,
Thorsten Blum wrote:
>
> To prepare for removing strlcat() from the kernel [1], use strscpy()
> instead with the current name length as the append offset. Change
> append_ctl_name() to return void since no caller uses its return value.
>
> Use append_ctl_name() to append " Jack" in build_connector_control().
>
> No functional change.
>
> Link: https://github.com/KSPP/linux/issues/370 [1]
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>

Applied now. Thanks.


Takashi