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:
0eb71ea
)
ALSA: cs5530: Use safer strscpy() instead of strcpy()
author
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jul 2025 10:06:39 +0000
(12:06 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 11 Jul 2025 07:53:19 +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-58-tiwai@suse.de
sound/pci/cs5530.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/cs5530.c
b/sound/pci/cs5530.c
index 532891e67c347a55f9f8b45f32f5893be6fa9922..292b65aa758a9d207f33ea14759053ab5f944754 100644
(file)
--- a/
sound/pci/cs5530.c
+++ b/
sound/pci/cs5530.c
@@
-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");
+ str
s
cpy(card->driver, "CS5530");
+ str
s
cpy(card->shortname, "CS5530 Audio");
sprintf(card->longname, "%s at 0x%lx", card->shortname, chip->pci_base);
err = snd_card_register(card);