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:
Takashi Iwai 2025-07-10 12:06:39 +02:00
parent 0eb71ea6d7
commit 2d5239eab8
1 changed files with 2 additions and 2 deletions

View File

@ -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);