mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: fix _alibpref string (add '.' delimiter to the end)
Fixes: 0e4ba2ea ("ucm: add _alibpref to get the private device prefix")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0e4ba2ea8c
commit
9621d0bff2
1 changed files with 2 additions and 2 deletions
|
|
@ -2146,13 +2146,13 @@ static int get_alibcfg(snd_use_case_mgr_t *uc_mgr, char **str)
|
|||
*/
|
||||
static int get_alibpref(snd_use_case_mgr_t *uc_mgr, char **str)
|
||||
{
|
||||
const size_t l = 9;
|
||||
const size_t l = 10;
|
||||
char *s;
|
||||
|
||||
s = malloc(l);
|
||||
if (s == NULL)
|
||||
return -ENOMEM;
|
||||
snprintf(s, l, "_ucm%04X", uc_mgr->ucm_card_number);
|
||||
snprintf(s, l, "_ucm%04X.", uc_mgr->ucm_card_number);
|
||||
*str = s;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue