mirror of https://github.com/torvalds/linux.git
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:
parent
22095c0515
commit
962dba349a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue