diff options
Diffstat (limited to 'sound/core/oss/mixer_oss.c')
-rw-r--r-- | sound/core/oss/mixer_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c index d8359cfeca15..1b5e0c49a0ad 100644 --- a/sound/core/oss/mixer_oss.c +++ b/sound/core/oss/mixer_oss.c | |||
@@ -499,7 +499,7 @@ static struct snd_kcontrol *snd_mixer_oss_test_id(struct snd_mixer_oss *mixer, c | |||
499 | 499 | ||
500 | memset(&id, 0, sizeof(id)); | 500 | memset(&id, 0, sizeof(id)); |
501 | id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; | 501 | id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; |
502 | strcpy(id.name, name); | 502 | strlcpy(id.name, name, sizeof(id.name)); |
503 | id.index = index; | 503 | id.index = index; |
504 | return snd_ctl_find_id(card, &id); | 504 | return snd_ctl_find_id(card, &id); |
505 | } | 505 | } |