keycodes list reading at incorrect offset

This commit is contained in:
Andrey Sidorov 2011-09-14 09:28:07 +10:00
parent 2e06a1a04b
commit 44b409bccd

View file

@ -440,7 +440,7 @@ module.exports = {
var format = '';
for (var i=0; i < listLength; ++i)
format += 'L';
for (var offset=0; offset < buff.length - 4*listLength; offset += 4*listLength)
for (var offset=24; offset < buff.length - 4*listLength; offset += 4*listLength)
res.push(buff.unpack(format, offset));
return res;
}