Re: [PATCH] ALSA: hiface: Use scnprintf() in hiface_chip_create()

From: Takashi Iwai

Date: Wed Oct 21 2026 - 09:04:52 EST


On Wed, 21 Oct 2026 11:40:01 +0200,
Thorsten Blum wrote:
>
> To prepare for removing strlcat() from the kernel [1], use scnprintf()
> instead. Since scnprintf() returns the number of characters actually
> written, drop the length check before usb_make_path().
>
> Also drop the explicit size arguments from strscpy() since they can be
> inferred from the destination arrays.
>
> No functional change.
>
> Link: https://github.com/KSPP/linux/issues/370 [1]
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>

Applied now. Thanks.


Takashi