Steve Ratcliffe <steve@parabola.demon.co.uk>

There is a bug in the alsa-lib remove events function.
This commit is contained in:
Jaroslav Kysela 1999-12-15 08:56:29 +00:00
parent b2b360fc66
commit 7b0898c17d

View file

@ -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);
if (remove_match(rmp, ev)) {
/* Remove event */
memcpy(ep, ep + len, len);
seq->obufused -= len;
memmove(ep, ep + len, seq->obufused - (seq->obuf - ep));
} else {
ep += len;
}