summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-07-10 12:06:28 +0200
committerTakashi Iwai <tiwai@suse.de>2025-07-11 09:53:17 +0200
commit1813fa7c587a35aa1d73e1d6d4f1599ecac8bd33 (patch)
tree57bd8b7130cee32836b8f7cf5c074ba120a2abcb
parent03b0a614e2292a4afcaf5d196752d02803e2e6ca (diff)
downloadlinux-1813fa7c587a35aa1d73e1d6d4f1599ecac8bd33.tar.gz
linux-1813fa7c587a35aa1d73e1d6d4f1599ecac8bd33.zip
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
-rw-r--r--sound/pci/als4000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c
index 3f4f3037f71f..eb159497c905 100644
--- a/sound/pci/als4000.c
+++ b/sound/pci/als4000.c
@@ -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);