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
This commit is contained in:
Takashi Iwai
2025-07-10 12:06:41 +02:00
parent fe9502be46
commit ea9deed52d

View File

@@ -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;
}