mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
ALSA: echoaudio: 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-61-tiwai@suse.de
This commit is contained in:
parent
ea9deed52d
commit
7bab02a32c
|
|
@ -311,7 +311,7 @@ static int snd_echo_midi_create(struct snd_card *card,
|
|||
if (err < 0)
|
||||
return err;
|
||||
|
||||
strcpy(chip->rmidi->name, card->shortname);
|
||||
strscpy(chip->rmidi->name, card->shortname);
|
||||
chip->rmidi->private_data = chip;
|
||||
|
||||
snd_rawmidi_set_ops(chip->rmidi, SNDRV_RAWMIDI_STREAM_INPUT,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user