mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
ALSA: es18xx: Use safer strscpy() instead of strcpy()
Use a safer function strscpy() instead of strcpy() for copying to arrays. Only idiomatic code replacement, and no functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250710100727.22653-30-tiwai@suse.de
This commit is contained in:
@@ -1771,7 +1771,7 @@ static int snd_es18xx_mixer(struct snd_card *card)
|
||||
int err;
|
||||
unsigned int idx;
|
||||
|
||||
strcpy(card->mixername, chip->pcm->name);
|
||||
strscpy(card->mixername, chip->pcm->name);
|
||||
|
||||
for (idx = 0; idx < ARRAY_SIZE(snd_es18xx_base_controls); idx++) {
|
||||
struct snd_kcontrol *kctl;
|
||||
|
||||
Reference in New Issue
Block a user