Skip to content

Commit

Permalink
Fixed build for node 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ihusejnovic committed Oct 9, 2020
1 parent 67adae7 commit 3a8248c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdu.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PDU.fromStream = function(stream, command_length) {
return false;
}
var commandLengthBuffer = Buffer.alloc(4);
commandLengthBuffer.writeUInt32BE(command_length);
commandLengthBuffer.writeUInt32BE(command_length, 0);
var pduBuffer = Buffer.concat([commandLengthBuffer, buffer]);

return new PDU(pduBuffer);
Expand Down

0 comments on commit 3a8248c

Please sign in to comment.