mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: fix parsing of the internal hexadecimal card identifier (2)
I forgot to change the passed variable name.
Fixes: 050f18c5 ("ucm: fix parsing of the internal hexadecimal card identifier")
Fixes: https://github.com/alsa-project/alsa-lib/issues/188
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
050f18c525
commit
7ffe3d4162
1 changed files with 1 additions and 1 deletions
|
|
@ -821,7 +821,7 @@ const char *uc_mgr_alibcfg_by_device(snd_config_t **top, const char *name)
|
|||
return NULL;
|
||||
strncpy(buf, name + 4, 4);
|
||||
buf[4] = '\0';
|
||||
err = safe_strtol_base(name, &card_num, 16);
|
||||
err = safe_strtol_base(buf, &card_num, 16);
|
||||
if (err < 0 || card_num < 0 || card_num > 0xffff)
|
||||
return NULL;
|
||||
config = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue