From 44b409bccdc3b8bf94cdb3944a94463c9b40a932 Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Wed, 14 Sep 2011 09:28:07 +1000 Subject: [PATCH] keycodes list reading at incorrect offset --- lib/x11/corereqs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x11/corereqs.js b/lib/x11/corereqs.js index 03b73dd..83c5d7a 100644 --- a/lib/x11/corereqs.js +++ b/lib/x11/corereqs.js @@ -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; }