mirror of https://github.com/torvalds/linux.git
ALSA: cs5530: 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-58-tiwai@suse.de
This commit is contained in:
parent
0eb71ea6d7
commit
2d5239eab8
|
|
@ -207,8 +207,8 @@ static int snd_cs5530_probe(struct pci_dev *pci,
|
|||
if (err < 0)
|
||||
return err;
|
||||
|
||||
strcpy(card->driver, "CS5530");
|
||||
strcpy(card->shortname, "CS5530 Audio");
|
||||
strscpy(card->driver, "CS5530");
|
||||
strscpy(card->shortname, "CS5530 Audio");
|
||||
sprintf(card->longname, "%s at 0x%lx", card->shortname, chip->pci_base);
|
||||
|
||||
err = snd_card_register(card);
|
||||
|
|
|
|||
Loading…
Reference in New Issue