From 7b9f170fb2140834d0583954b5d2d018c9d92fe6 Mon Sep 17 00:00:00 2001 From: roblabla Date: Mon, 31 Mar 2014 00:07:30 +0200 Subject: [PATCH] Fix bug in sizeOfMatchArray making the tests fail --- lib/protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protocol.js b/lib/protocol.js index cd49a2d..4d86f5e 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -1586,7 +1586,7 @@ function readMatchArray(buffer, offset) { function sizeOfMatchArray(value) { var size = sizeOfVarInt(value.length); for (var s in value) { - size += sizeOfString(value); + size += sizeOfString(s); } return size; }