Skip to content

Commit 080410f

Browse files
tobluxtiwai
authored andcommitted
ALSA: azt2320: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated, use strscpy() instead. Link: KSPP#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>
1 parent 120305a commit 080410f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/isa/azt2320.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ static int snd_card_azt2320_probe(int dev,
189189
if (error < 0)
190190
return error;
191191

192-
strcpy(card->driver, "AZT2320");
193-
strcpy(card->shortname, "Aztech AZT2320");
192+
strscpy(card->driver, "AZT2320");
193+
strscpy(card->shortname, "Aztech AZT2320");
194194
sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i",
195195
card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]);
196196

0 commit comments

Comments
 (0)