diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2017-03-13 20:22:50 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-03-20 12:24:34 +0100 |
commit | cd7d1eab8545c6b7bbcd03dd723247ce1bb9954b (patch) | |
tree | 0247283698152a67a92137333d0b2e31d40b6f46 /sound/isa | |
parent | ebe2aa911fc85b7c1ce6c433dec72a4b044b22c6 (diff) | |
download | lwn-cd7d1eab8545c6b7bbcd03dd723247ce1bb9954b.tar.gz lwn-cd7d1eab8545c6b7bbcd03dd723247ce1bb9954b.zip |
ALSA: es1688: Use strcpy() instead of sprintf()
There is no point in using sprintf() without a format string when
strcpy() can perform the same operation.
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/es1688/es1688_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/es1688/es1688_lib.c b/sound/isa/es1688/es1688_lib.c index e2cf508841b1..81cf26fa28d6 100644 --- a/sound/isa/es1688/es1688_lib.c +++ b/sound/isa/es1688/es1688_lib.c @@ -742,7 +742,7 @@ int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device) pcm->private_data = chip; pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; - sprintf(pcm->name, snd_es1688_chip_id(chip)); + strcpy(pcm->name, snd_es1688_chip_id(chip)); chip->pcm = pcm; snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, |