ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 08:28:00 +0000 (10:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Sep 2023 11:22:06 +0000 (13:22 +0200)
commitea77850e98410987525eb392c229949c87779835
treed4d06b63ab27b451bf1916c7424c2cd757282fb9
parent641e969114c781ff269e1bf1b1f8d3cc33bc4a1a
ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names

The compile warnings at filling MIDI stream name strings are all
false-positive; the number of streams can't go so high.

For suppressing the warning, replace snprintf() with scnprintf().
As stated in the above, truncation doesn't matter.

Link: https://lore.kernel.org/r/20230915082802.28684-12-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/bebob/bebob_midi.c
sound/firewire/dice/dice-midi.c
sound/firewire/digi00x/digi00x-midi.c
sound/firewire/fireface/ff-midi.c
sound/firewire/fireworks/fireworks_midi.c
sound/firewire/motu/motu-midi.c
sound/firewire/oxfw/oxfw-midi.c
sound/firewire/tascam/tascam-midi.c