ALSA: firewire: Fix -Wformat-truncation warning for longname string
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 08:27:59 +0000 (10:27 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 11:21:50 +0000 (13:21 +0200)
commit641e969114c781ff269e1bf1b1f8d3cc33bc4a1a
treeab447063eb38d35ba4861f65b691dfcf90be56c7
parent7272b8bfba35b2333b33d77f73ce75ee161880c2
ALSA: firewire: 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/20230915082802.28684-11-tiwai@suse.de
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireworks/fireworks.c
sound/firewire/oxfw/oxfw.c