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:
fe9502b
)
ALSA: ctxfi: Use safer strscpy() instead of strcpy()
author
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jul 2025 10:06:41 +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-60-tiwai@suse.de
sound/pci/ctxfi/ctmixer.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/ctxfi/ctmixer.c
b/sound/pci/ctxfi/ctmixer.c
index 6797fde3d78897acc9d3ae0197f551d1e61d8283..496682613db57acf0e0c28dccea91c817ff89c93 100644
(file)
--- a/
sound/pci/ctxfi/ctmixer.c
+++ b/
sound/pci/ctxfi/ctmixer.c
@@
-1219,7
+1219,7
@@
int ct_alsa_mix_create(struct ct_atc *atc,
if (err)
return err;
- strcpy(atc->card->mixername, device_name);
+ str
s
cpy(atc->card->mixername, device_name);
return 0;
}