mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-10 05:33:43 -04:00
coverity.com fixes - initial round
This commit tries to fix a bunch of issues found by coverity.com. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f0679e5de2
commit
47f4f9b73b
40 changed files with 283 additions and 133 deletions
|
|
@ -329,9 +329,9 @@ done:
|
|||
buf[i] = 0;
|
||||
source = &buf[i + 2];
|
||||
|
||||
strcpy(line->source, source);
|
||||
strcpy(line->control, control);
|
||||
strcpy(line->sink, sink);
|
||||
snd_strlcpy(line->source, source, sizeof(line->source));
|
||||
snd_strlcpy(line->control, control, sizeof(line->source));
|
||||
snd_strlcpy(line->sink, sink, sizeof(line->source));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue