mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
ALSA: azt2320: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated, use strscpy() instead. Link: https://github.com/KSPP/linux/issues/88 Cc: linux-hardening@vger.kernel.org Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250407090832.743255-1-thorsten.blum@linux.dev Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
120305ab90
commit
080410fe61
|
@ -189,8 +189,8 @@ static int snd_card_azt2320_probe(int dev,
|
|||
if (error < 0)
|
||||
return error;
|
||||
|
||||
strcpy(card->driver, "AZT2320");
|
||||
strcpy(card->shortname, "Aztech AZT2320");
|
||||
strscpy(card->driver, "AZT2320");
|
||||
strscpy(card->shortname, "Aztech AZT2320");
|
||||
sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i",
|
||||
card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user