Merge tag 'pinctrl-v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6-microblaze.git] / sound / core / ctljack.c
index 9be4e28..709b1a9 100644 (file)
@@ -35,7 +35,7 @@ static int get_available_index(struct snd_card *card, const char *name)
 
        sid.index = 0;
        sid.iface = SNDRV_CTL_ELEM_IFACE_CARD;
-       strlcpy(sid.name, name, sizeof(sid.name));
+       strscpy(sid.name, name, sizeof(sid.name));
 
        while (snd_ctl_find_id(card, &sid)) {
                sid.index++;