From ea41f7e0cb6e35758640e86c2ca2556ee85c9caf Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Thu, 24 Dec 2009 13:44:28 +0000 Subject: [PATCH] --- yaml --- r: 182809 b: refs/heads/master c: 40ca114265a281d51b261771df551a373fc8ff3c h: refs/heads/master i: 182807: 589b29775f7ec60d170714c3713bae0136f54e4c v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-core.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 507906cd0bdb..7265564986c3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 633154d3a7bbd542465b905392bf76b780f00b4f +refs/heads/master: 40ca114265a281d51b261771df551a373fc8ff3c diff --git a/trunk/sound/soc/soc-core.c b/trunk/sound/soc/soc-core.c index 8b900a842677..9b36c5eec75c 100644 --- a/trunk/sound/soc/soc-core.c +++ b/trunk/sound/soc/soc-core.c @@ -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;