diff options
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 8b900a842677..9b36c5eec75c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1276,8 +1276,8 @@ static int soc_new_pcm(struct snd_soc_device *socdev, | |||
1276 | codec_dai->codec = card->codec; | 1276 | codec_dai->codec = card->codec; |
1277 | 1277 | ||
1278 | /* check client and interface hw capabilities */ | 1278 | /* check client and interface hw capabilities */ |
1279 | sprintf(new_name, "%s %s-%d", dai_link->stream_name, codec_dai->name, | 1279 | snprintf(new_name, sizeof(new_name), "%s %s-%d", |
1280 | num); | 1280 | dai_link->stream_name, codec_dai->name, num); |
1281 | 1281 | ||
1282 | if (codec_dai->playback.channels_min) | 1282 | if (codec_dai->playback.channels_min) |
1283 | playback = 1; | 1283 | playback = 1; |