projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03b0a61
)
ALSA: als4000: Use safer strscpy() instead of strcpy()
author
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jul 2025 10:06:28 +0000
(12:06 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 11 Jul 2025 07:53:17 +0000
(09:53 +0200)
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
sound/pci/als4000.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/als4000.c
b/sound/pci/als4000.c
index 3f4f3037f71f49e187f833c8fa0f23a4d3406a37..eb159497c905a710dac093d1538e673102d62353 100644
(file)
--- 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");
+ str
s
cpy(card->driver, "ALS4000");
+ str
s
cpy(card->shortname, "Avance Logic ALS4000");
sprintf(card->longname, "%s at 0x%lx, irq %i",
card->shortname, chip->alt_port, chip->irq);