mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: ctlparse - always terminate cset buffer
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
df760d8b31
commit
7b259bc00e
1 changed files with 1 additions and 1 deletions
|
|
@ -208,8 +208,8 @@ int snd_ctl_ascii_elem_id_parse(snd_ctl_elem_id_t *dst, const char *str)
|
||||||
}
|
}
|
||||||
str++;
|
str++;
|
||||||
}
|
}
|
||||||
*ptr = '\0';
|
|
||||||
}
|
}
|
||||||
|
*ptr = '\0';
|
||||||
snd_ctl_elem_id_set_name(dst, buf);
|
snd_ctl_elem_id_set_name(dst, buf);
|
||||||
} else if (!strncasecmp(str, "index=", 6)) {
|
} else if (!strncasecmp(str, "index=", 6)) {
|
||||||
str += 6;
|
str += 6;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue