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