mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
ALSA: mips/sgio2audio: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250610121835.2908-2-thorsten.blum@linux.dev Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
92f59aeb13
commit
d6e2c062e5
@@ -16,6 +16,7 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#include <asm/ip32/ip32_ints.h>
|
||||
@@ -685,7 +686,7 @@ static int snd_sgio2audio_new_pcm(struct snd_sgio2audio *chip)
|
||||
return err;
|
||||
|
||||
pcm->private_data = chip;
|
||||
strcpy(pcm->name, "SGI O2 DAC1");
|
||||
strscpy(pcm->name, "SGI O2 DAC1");
|
||||
|
||||
/* set operators */
|
||||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
|
||||
@@ -700,7 +701,7 @@ static int snd_sgio2audio_new_pcm(struct snd_sgio2audio *chip)
|
||||
return err;
|
||||
|
||||
pcm->private_data = chip;
|
||||
strcpy(pcm->name, "SGI O2 DAC2");
|
||||
strscpy(pcm->name, "SGI O2 DAC2");
|
||||
|
||||
/* set operators */
|
||||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
|
||||
@@ -892,8 +893,8 @@ static int snd_sgio2audio_probe(struct platform_device *pdev)
|
||||
return err;
|
||||
}
|
||||
|
||||
strcpy(card->driver, "SGI O2 Audio");
|
||||
strcpy(card->shortname, "SGI O2 Audio");
|
||||
strscpy(card->driver, "SGI O2 Audio");
|
||||
strscpy(card->shortname, "SGI O2 Audio");
|
||||
sprintf(card->longname, "%s irq %i-%i",
|
||||
card->shortname,
|
||||
MACEISA_AUDIO1_DMAT_IRQ,
|
||||
|
||||
Reference in New Issue
Block a user