diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-12-21 23:12:00 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-12-22 08:06:35 +0100 |
commit | 7b259bc00e5204029ac414c2f99688cf2d0b408c (patch) | |
tree | cd2b9c8e1dd5048ca31473ba02823c5a69d646ae | |
parent | df760d8b311607bacd821a5d6a3f341c2a853567 (diff) | |
download | alsa-lib-7b259bc00e5204029ac414c2f99688cf2d0b408c.tar.gz |
ucm: ctlparse - always terminate cset buffer
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r-- | src/control/ctlparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |