mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-17 08:56:45 -05:00
Steve Ratcliffe <steve@parabola.demon.co.uk>
There is a bug in the alsa-lib remove events function.
This commit is contained in:
parent
b2b360fc66
commit
7b0898c17d
1 changed files with 1 additions and 2 deletions
|
|
@ -795,10 +795,9 @@ int snd_seq_remove_events(snd_seq_t *seq, snd_seq_remove_events_t *rmp)
|
||||||
len = snd_seq_event_length(ev);
|
len = snd_seq_event_length(ev);
|
||||||
|
|
||||||
if (remove_match(rmp, ev)) {
|
if (remove_match(rmp, ev)) {
|
||||||
|
|
||||||
/* Remove event */
|
/* Remove event */
|
||||||
memcpy(ep, ep + len, len);
|
|
||||||
seq->obufused -= len;
|
seq->obufused -= len;
|
||||||
|
memmove(ep, ep + len, seq->obufused - (seq->obuf - ep));
|
||||||
} else {
|
} else {
|
||||||
ep += len;
|
ep += len;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue