ASoC: Use snprintf() when generating stream names

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
Mark Brown 2009-12-24 13:44:28 +00:00
Родитель 633154d3a7
Коммит 40ca114265
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1276,8 +1276,8 @@ static int soc_new_pcm(struct snd_soc_device *socdev,
codec_dai->codec = card->codec;
/* check client and interface hw capabilities */
sprintf(new_name, "%s %s-%d", dai_link->stream_name, codec_dai->name,
num);
snprintf(new_name, sizeof(new_name), "%s %s-%d",
dai_link->stream_name, codec_dai->name, num);
if (codec_dai->playback.channels_min)
playback = 1;