diff options
| author | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-01-10 17:53:54 +0000 |
|---|---|---|
| committer | Stepan Moskovchenko <stevenm@rockbox.org> | 2007-01-10 17:53:54 +0000 |
| commit | 65ef67e0f14856d52e6321ae7d908d4407fb6b01 (patch) | |
| tree | 594d0d1dae8d4b5cb0c153287510880af039647d /apps/plugins | |
| parent | 094962a26e0b344b0c27531888208c1062b3ae43 (diff) | |
| download | rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.zip rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.tar.gz rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.tar.bz2 rockbox-65ef67e0f14856d52e6321ae7d908d4407fb6b01.tar.xz | |
Fix a nasty little bug that would under the right conditions cause
memory corruption and other weirdness.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11978 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/midi/sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/midi/sequencer.c b/apps/plugins/midi/sequencer.c index fdfd5d7..d56bd26 100644 --- a/apps/plugins/midi/sequencer.c +++ b/apps/plugins/midi/sequencer.c @@ -188,7 +188,7 @@ void pressNote(int ch, int note, int vol) if(voices[a].isUsed==0) break; } - if(a==MAX_VOICES-1) + if(a==MAX_VOICES) { // printf("\nVoice kill"); // printf("\nToo many voices playing at once. No more left"); |