Skip to contentSkip to conversation

ALSA: azt2320: Replace deprecated strcpy() with strscpy()

PATCH In review Thorsten Blum 2 participants 2 messages Apr 7, 2025 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: azt2320: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated, use strscpy() instead.

---
 sound/isa/azt2320.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/azt2320.c +2 -2
index b937c9138d12..588b9f0831d3 100644
@@ -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]);
 
Signature · 1 line
2.49.0