Re: [PATCH 11/13] ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Sep 15, 2023 at 10:28:00AM +0200, Takashi Iwai wrote:
> 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.
> 
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> ---
>  sound/firewire/bebob/bebob_midi.c         |  6 +++---
>  sound/firewire/dice/dice-midi.c           |  4 ++--
>  sound/firewire/digi00x/digi00x-midi.c     | 14 +++++++-------
>  sound/firewire/fireface/ff-midi.c         |  4 ++--
>  sound/firewire/fireworks/fireworks_midi.c |  4 ++--
>  sound/firewire/motu/motu-midi.c           |  4 ++--
>  sound/firewire/oxfw/oxfw-midi.c           |  6 +++---
>  sound/firewire/tascam/tascam-midi.c       | 12 ++++++------
>  8 files changed, 27 insertions(+), 27 deletions(-)

Reviewed-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
Tested-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>


Thanks

Takashi Sakamoto



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux