aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/cs423x/cs4236.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-07-18 13:48:04 +0200
committerTakashi Iwai <tiwai@suse.de>2017-07-18 17:51:27 +0200
commit8a463639db5781ed52c972db013eba7d834f440d (patch)
tree0352797a26645b1b6e1fc804475377f5ff3e6c67 /sound/isa/cs423x/cs4236.c
parentALSA: fm801: Initialize chip after IRQ handler is registered (diff)
downloadlinux-dev-8a463639db5781ed52c972db013eba7d834f440d.tar.xz
linux-dev-8a463639db5781ed52c972db013eba7d834f440d.zip
ALSA: als100: fix format string overflow warning
The compiler sees that the format string might overflow for the longname: sound/isa/als100.c: In function 'snd_als100_pnp_detect': sound/isa/als100.c:225:27: error: ', dma ' directive writing 6 bytes into a region of size between 0 and 64 [-Werror=format-overflow=] sprintf(card->longname, "%s, %s at 0x%lx, irq %d, dma %d", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sound/isa/als100.c:225:3: note: 'sprintf' output between 24 and 113 bytes into a destination of size 80 sprintf(card->longname, "%s, %s at 0x%lx, irq %d, dma %d", Open-coding "shortname" here gets us below the limit, and using snprintf() is a good idea too. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/cs423x/cs4236.c')
0 files changed, 0 insertions, 0 deletions