Commit 360a5812 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Takashi Iwai
Browse files

ALSA: core: control_led: use strscpy instead of strlcpy

parent 7482ec71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}