sound:starfive:spdif:Use extrenal mclk
[platform/kernel/linux-starfive.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;
                }