From 7b259bc00e5204029ac414c2f99688cf2d0b408c Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Tue, 21 Dec 2010 23:12:00 +0100 Subject: ucm: ctlparse - always terminate cset buffer Signed-off-by: Liam Girdwood --- src/control/ctlparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/ctlparse.c b/src/control/ctlparse.c index c8300f3b..a9298167 100644 --- a/src/control/ctlparse.c +++ b/src/control/ctlparse.c @@ -208,8 +208,8 @@ int snd_ctl_ascii_elem_id_parse(snd_ctl_elem_id_t *dst, const char *str) } str++; } - *ptr = '\0'; } + *ptr = '\0'; snd_ctl_elem_id_set_name(dst, buf); } else if (!strncasecmp(str, "index=", 6)) { str += 6; -- cgit v1.2.1