ALSA: cs4231: Fix -Wformat-truncation warning for longname string
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 09:13:12 +0000 (11:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 11:23:01 +0000 (13:23 +0200)
commitba8bb7dce1b2d2e3d582733f015778e3c31d042b
tree807f80f75b47f918ed7e9b472ff0258c2ed1c9b1
parent60a9c7f7fb98163150964236e07bc57e731ad4f2
ALSA: cs4231: Fix -Wformat-truncation warning for longname string

The filling of card->longname can be gracefully truncated, as it's
only informative.  Use scnprintf() and suppress the superfluous
compile warning with -Wformat-truncation.

Link: https://lore.kernel.org/r/20230915091313.5988-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/cs423x/cs4231.c