From: Thorsten Blum Date: Mon, 7 Apr 2025 09:08:29 +0000 (+0200) Subject: ALSA: azt2320: Replace deprecated strcpy() with strscpy() X-Git-Tag: v6.15-rc3~36^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=080410fe61e6df035960f5cbec9e381ac8b4ced0;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20250407090832.743255-1-thorsten.blum@linux.dev Signed-off-by: Takashi Iwai --- diff --git a/sound/isa/azt2320.c b/sound/isa/azt2320.c index b937c9138d124..588b9f0831d3f 100644 --- a/sound/isa/azt2320.c +++ b/sound/isa/azt2320.c @@ -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]);