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:
Jaroslav Kysela 2021-11-12 17:27:02 +01:00
parent 050f18c525
commit 7ffe3d4162

View file

@ -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;