Comparing version 0.1.10 to 0.1.11
@@ -175,2 +175,3 @@ var EventEmitter = require('events').EventEmitter, | ||
p = 9, | ||
pos = position, | ||
buf = new Buffer(4 + 1 + 4 + 4 + handlelen + 8 + 4); | ||
@@ -182,4 +183,4 @@ buf[4] = REQUEST.READ; | ||
for (var i = 7; i >= 0; --i) { | ||
buf[p + i] = position & 0xFF; | ||
position /= 256; | ||
buf[p + i] = pos & 0xFF; | ||
pos /= 256; | ||
} | ||
@@ -191,3 +192,3 @@ buf.writeUInt32BE(length, p += 8, true); | ||
return cb(err); | ||
cb(undefined, bytesRead || 0, data); | ||
cb(undefined, bytesRead || 0, data, position); | ||
}, buffer.slice(offset, offset + length)); | ||
@@ -774,3 +775,2 @@ }; | ||
this._value *= 256; | ||
this._value <<= 8; | ||
this._value += chunk[chunk.i]; | ||
@@ -777,0 +777,0 @@ --this._data.len; |
{ "name": "ssh2", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -4,0 +4,0 @@ "description": "An SSH2 client module written in pure JavaScript for node.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193491