diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-07-18 14:48:09 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-07-18 18:54:41 +0300 |
commit | 7ad210ace5c1701421a4defa9d9e830a6f2ee56b (patch) | |
tree | 705ef49c6336ed95591902878f4695622980cbc2 /sound/pci/pcxhr/pcxhr.c | |
parent | c6e486ffb2e5a3a3e8f34fb24a6f6f2683cf010b (diff) | |
download | linux-7ad210ace5c1701421a4defa9d9e830a6f2ee56b.tar.xz |
ALSA: rme9652: fix format overflow warnings
gcc-7 warns about a possible sprintf format string overflow with a
temporary buffer that is used to print from another buffer of the same
size:
sound/pci/rme9652/hdspm.c: In function 'snd_hdspm_create_alsa_devices':
sound/pci/rme9652/hdspm.c:2123:17: error: ' MIDIoverMADI' directive writing 13 bytes into a region of size between 1 and 32 [-Werror=format-overflow=]
This extends the temporary buffer to twice the size, and changes
the code to use the safer snprintf() across the entire file.
The longer buffer is still necessary to avoid a format-truncation
warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/pcxhr/pcxhr.c')
0 files changed, 0 insertions, 0 deletions