ALSA: azt2320: Replace deprecated strcpy() with strscpy()
PATCH 1/1 ALSA: azt2320: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated, use strscpy() instead.
Signed-off-by Thorsten Blum <[email protected]>
--- sound/isa/azt2320.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/isa/azt2320.c +2 -2
@@ -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
Quoted 6 lines · Thorsten Blum
strcpy()is deprecated, usestrscpy()instead.
Applied now. Thanks.
Takashi