Skip to content

Commit

Permalink
ALSA: azt2320: Replace deprecated strcpy() with strscpy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thorsten Blum authored and Takashi Iwai committed Apr 8, 2025
1 parent 120305a commit 080410f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/isa/azt2320.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 080410f

Please sign in to comment.