projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
120305a
)
ALSA: azt2320: Replace deprecated strcpy() with strscpy()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Mon, 7 Apr 2025 09:08:29 +0000
(11:08 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 8 Apr 2025 09:48:37 +0000
(11:48 +0200)
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>
sound/isa/azt2320.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/isa/azt2320.c
b/sound/isa/azt2320.c
index b937c9138d1248c22f74178cf2f767067eef611c..588b9f0831d3fe83eb593035bf6cbb655fc21793 100644
(file)
--- 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");
+ str
s
cpy(card->driver, "AZT2320");
+ str
s
cpy(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]);