overran array

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@628 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2009-04-06 23:44:54 +00:00
parent 2a77a45224
commit 1c167c4a34

View File

@ -314,7 +314,7 @@ static int find_key(STREAMFILE *file, uint16_t *xor_start, uint16_t *xor_mult, u
}
/* guess each of the keys */
for (key_id=0;key_id<=key_count;key_id++) {
for (key_id=0;key_id<key_count;key_id++) {
/* test pre-scales */
uint16_t xor = keys[key_id].start;
uint16_t mult = keys[key_id].mult;