diff options
| author | Takashi Iwai <tiwai@suse.de> | 2025-07-10 12:06:41 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-07-11 09:53:19 +0200 |
| commit | ea9deed52d7f196454456f775fddf53328e90f2a (patch) | |
| tree | e9ad0621c466f68390dc8679ffcbb084f2bba6de | |
| parent | fe9502be46f7b76b9d95fc5df7b018f48b8a22ce (diff) | |
| download | linux-ea9deed52d7f196454456f775fddf53328e90f2a.tar.gz linux-ea9deed52d7f196454456f775fddf53328e90f2a.zip | |
ALSA: ctxfi: 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-60-tiwai@suse.de
| -rw-r--r-- | sound/pci/ctxfi/ctmixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/ctmixer.c b/sound/pci/ctxfi/ctmixer.c index 6797fde3d788..496682613db5 100644 --- 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); + strscpy(atc->card->mixername, device_name); return 0; } |
