mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 13:59:45 -04:00
ALSA: ak4531: 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-44-tiwai@suse.de
This commit is contained in:
@@ -389,7 +389,7 @@ int snd_ak4531_mixer(struct snd_card *card,
|
||||
snd_ak4531_free(ak4531);
|
||||
return err;
|
||||
}
|
||||
strcpy(card->mixername, "Asahi Kasei AK4531");
|
||||
strscpy(card->mixername, "Asahi Kasei AK4531");
|
||||
ak4531->write(ak4531, AK4531_RESET, 0x03); /* no RST, PD */
|
||||
udelay(100);
|
||||
ak4531->write(ak4531, AK4531_CLOCK, 0x00); /* CODEC ADC and CODEC DAC use {LR,B}CLK2 and run off LRCLK2 PLL */
|
||||
|
||||
Reference in New Issue
Block a user