From f8e0363cda408d0069dd69250e975c5f98faa610 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 18 Feb 2014 13:42:16 -0700 Subject: [PATCH] Fixed bug in util.packUInt16LE --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 196e747..da2b092 100644 --- a/lib/util.js +++ b/lib/util.js @@ -176,7 +176,7 @@ exports.serializeString = function(s){ exports.packUInt16LE = function(num){ - var buff = new Buffer(4); + var buff = new Buffer(2); buff.writeUInt16LE(num, 0); return buff; };