diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-12-21 23:11:59 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-12-22 08:06:28 +0100 |
commit | df760d8b311607bacd821a5d6a3f341c2a853567 (patch) | |
tree | 9c34eaba39b430ee5a73a07352067e35c5f17d9f | |
parent | eba547181963a198f82458d1c7b36561176ae941 (diff) | |
download | alsa-lib-df760d8b311607bacd821a5d6a3f341c2a853567.tar.gz |
ucm: fix handling of cset with spaces in the control name
Always terminate the cset command based on the last space found within the
cset command since the control name may contain spaces.
-rw-r--r-- | src/ucm/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c index 5f44461f..73050427 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -168,7 +168,7 @@ static int execute_cset(snd_ctl_t *ctl, char *cset) snd_ctl_elem_value_malloc(&value); snd_ctl_elem_info_malloc(&info); - pos = strchr(cset, ' '); + pos = strrchr(cset, ' '); if (pos == NULL) { uc_error("undefined value for cset >%s<", cset); return -EINVAL; |