mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: various coverity fixes
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6efa23f283
commit
0d97f53c25
3 changed files with 18 additions and 10 deletions
|
|
@ -880,8 +880,8 @@ int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl,
|
|||
if (enum_ctl->texts != NULL) {
|
||||
for (i = 0; i < num_items; i++) {
|
||||
if (enum_ctl->texts[i] != NULL)
|
||||
strncpy(ec->texts[i], enum_ctl->texts[i],
|
||||
SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
|
||||
snd_strlcpy(ec->texts[i], enum_ctl->texts[i],
|
||||
SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue