ALSA: oss-mixer - use strlcpy() instead strcpy()
[pandora-kernel.git] / sound / core / oss / mixer_oss.c
index d8359cf..1b5e0c4 100644 (file)
@@ -499,7 +499,7 @@ static struct snd_kcontrol *snd_mixer_oss_test_id(struct snd_mixer_oss *mixer, c
        
        memset(&id, 0, sizeof(id));
        id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
-       strcpy(id.name, name);
+       strlcpy(id.name, name, sizeof(id.name));
        id.index = index;
        return snd_ctl_find_id(card, &id);
 }