Skip to content

Commit cd7d1ea

Browse files
fishilicotiwai
authored andcommitted
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent ebe2aa9 commit cd7d1ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/isa/es1688/es1688_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device)
742742

743743
pcm->private_data = chip;
744744
pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
745-
sprintf(pcm->name, snd_es1688_chip_id(chip));
745+
strcpy(pcm->name, snd_es1688_chip_id(chip));
746746
chip->pcm = pcm;
747747

748748
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,

0 commit comments

Comments
 (0)