|
@@ -1854,7 +1854,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)
|
|
|
/* setup private data which can be retrieved when required */
|
|
/* setup private data which can be retrieved when required */
|
|
|
pcm->private_data = ctx;
|
|
pcm->private_data = ctx;
|
|
|
pcm->info_flags = 0;
|
|
pcm->info_flags = 0;
|
|
|
- strncpy(pcm->name, card->shortname, strlen(card->shortname));
|
|
|
|
|
|
|
+ strlcpy(pcm->name, card->shortname, strlen(card->shortname));
|
|
|
/* setup the ops for playabck */
|
|
/* setup the ops for playabck */
|
|
|
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &had_pcm_ops);
|
|
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &had_pcm_ops);
|
|
|
|
|
|