Re: [PATCH] ALSA: jack: Improve string handling in jack_kctl_name_gen

From: Takashi Iwai

Date: Mon Jan 26 2026 - 03:33:29 EST


On Sun, 25 Jan 2026 16:51:56 +0100,
Thorsten Blum wrote:
>
> If appending " Jack" is not necessary, replace snprintf("%s", ...) with
> the faster strscpy().
>
> Additionally, rename 'need_cat' to the clearer 'append_suf', use local
> variables for the suffix and its length, remove the confusing comment,
> compare strncmp() to 0, and use 'size_t' for the 'size' function
> parameter.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Thanks, applied to for-next branch.


Takashi