]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: jack: use scnprintf to improve parse_mask_bits
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 3 May 2026 10:11:02 +0000 (12:11 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 May 2026 11:28:35 +0000 (13:28 +0200)
commita03c2d1978e104cbee63577568258b2f0fa897a2
tree4387277ba4e3ff5849bc3ce29d490032ed6e16f1
parent1595a5b8c53d21872dc429c508501dd43dda4eac
ALSA: jack: use scnprintf to improve parse_mask_bits

Use the return value of scnprintf() to keep track of the current string
length and also replace strlcat() with scnprintf(). Return the string
length directly instead of calling strlen(buf).

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260503101102.298782-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/jack.c