Merge tag 'fscache-next-20210829' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / sound / core / control_led.c
index 764058c..a95332b 100644 (file)
@@ -564,7 +564,7 @@ static ssize_t set_led_id(struct snd_ctl_led_card *led_card, const char *buf, si
                        else {
                                for (; *s >= ' '; s++);
                                *s = '\0';
-                               strlcpy(id.name, buf2, sizeof(id.name));
+                               strscpy(id.name, buf2, sizeof(id.name));
                        }
                        break;
                }