mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
seq: seqmid - use correct snd_strlcat instead snd_strlcpy in update_group_ports()
Fixes: a4e47461 ("seq: update_group_ports - rewrite blknames update")
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
8291d2c601
commit
c748afe123
1 changed files with 2 additions and 2 deletions
|
|
@ -666,8 +666,8 @@ static void update_group_ports(snd_seq_t *seq, snd_ump_endpoint_info_t *ep)
|
|||
if (bp->name[0] == '\0')
|
||||
continue;
|
||||
if (blknames[0])
|
||||
snd_strlcpy(blknames, ", ", sizeof(blknames));
|
||||
snd_strlcpy(blknames, (const char *)bp->name, sizeof(blknames));
|
||||
snd_strlcat(blknames, ", ", sizeof(blknames));
|
||||
snd_strlcat(blknames, (const char *)bp->name, sizeof(blknames));
|
||||
}
|
||||
|
||||
if (!*blknames)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue