mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
ALSA: als4000: 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-47-tiwai@suse.de
This commit is contained in:
parent
03b0a614e2
commit
1813fa7c58
|
|
@ -877,8 +877,8 @@ static int __snd_card_als4000_probe(struct pci_dev *pci,
|
|||
|
||||
snd_als4000_configure(chip);
|
||||
|
||||
strcpy(card->driver, "ALS4000");
|
||||
strcpy(card->shortname, "Avance Logic ALS4000");
|
||||
strscpy(card->driver, "ALS4000");
|
||||
strscpy(card->shortname, "Avance Logic ALS4000");
|
||||
sprintf(card->longname, "%s at 0x%lx, irq %i",
|
||||
card->shortname, chip->alt_port, chip->irq);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user