linux-stable/sound/firewire/oxfw
Takashi Iwai ea77850e98 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>
2023-09-15 13:22:06 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
oxfw-command.c ALSA: oxfw: use ENXIO for not-supported cases 2020-01-13 10:41:47 +01:00
oxfw-hwdep.c ALSA: oxfw: remove an unnecessary condition in hwdep_read() 2021-01-25 14:50:07 +01:00
oxfw-midi.c ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names 2023-09-15 13:22:06 +02:00
oxfw-pcm.c ALSA: firewire: Replace runtime->status->state reference to runtime->state 2022-09-27 08:47:25 +02:00
oxfw-proc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
oxfw-scs1x.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
oxfw-spkr.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
oxfw-stream.c ALSA: oxfw: fix functional regression for Mackie Onyx 1640i in v5.14 or later 2021-10-28 17:33:11 +02:00
oxfw.c ALSA: firewire: Fix -Wformat-truncation warning for longname string 2023-09-15 13:21:50 +02:00
oxfw.h ALSA: oxfw: fix functional regression for Mackie Onyx 1640i in v5.14 or later 2021-10-28 17:33:11 +02:00