Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thorsten Blum and committed by
Takashi Iwai
080410fe 120305ab

+2 -2
+2 -2
sound/isa/azt2320.c
··· 189 189 if (error < 0) 190 190 return error; 191 191 192 - strcpy(card->driver, "AZT2320"); 193 - strcpy(card->shortname, "Aztech AZT2320"); 192 + strscpy(card->driver, "AZT2320"); 193 + strscpy(card->shortname, "Aztech AZT2320"); 194 194 sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i", 195 195 card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); 196 196