mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
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.
This commit is contained in:
parent
eba5471819
commit
df760d8b31
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue