OpenCloudOS-Kernel/sound/isa/gus
YueHaibing bac5905454 ALSA: gus: Replace unsafe strcpy() with strscpy()
Fix smatch warning:
sound/isa/gus/gus_main.c:396 snd_gus_check_version() error:
 strcpy() 'card->longname' too large for 'card->shortname' (80 vs 32)

Even if this is not a real bug since the longest length of card->longname
now is 31, replace strcpy() with strscpy() in order to avoid possible
future mistake.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20210514070507.16600-1-yuehaibing@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-05-14 09:48:33 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gus_dma.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
gus_dram.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
gus_io.c ALSA: gus: More constifications 2020-01-05 16:15:03 +01:00
gus_irq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
gus_main.c ALSA: gus: Replace unsafe strcpy() with strscpy() 2021-05-14 09:48:33 +02:00
gus_mem.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
gus_mem_proc.c ALSA: info: Make snd_info_entry_ops as const 2020-01-03 09:24:18 +01:00
gus_mixer.c ALSA: isa: Constify snd_kcontrol_new items 2020-01-03 09:24:25 +01:00
gus_pcm.c ALSA: isa: Drop superfluous ioctl PCM ops 2019-12-11 07:25:28 +01:00
gus_reset.c ALSA: isa/gus: remove -Wmissing-prototypes warnings 2020-07-07 11:59:59 +02:00
gus_tables.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
gus_timer.c ALSA: Constify snd_timer_hardware definitions 2020-01-03 09:24:07 +01:00
gus_uart.c ALSA: isa/gus: remove 'set but not used' warning 2020-07-07 12:02:24 +02:00
gus_volume.c ALSA: gus: More constifications 2020-01-05 16:15:03 +01:00
gusclassic.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
gusextreme.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
gusmax.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
interwave-stb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
interwave.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00