Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request dbusjs#71 from frida/fix/buffer-v4-compatibility
Browse files Browse the repository at this point in the history
Fix compatibility with buffer@4
  • Loading branch information
Tony Crisci authored May 20, 2021
2 parents c6f794d + c0f51b7 commit 850786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports.unmarshalMessages = function messageParser (
}
state = 1;

endian = header.readUInt8();
endian = header.readUInt8(0);

fieldsLength = (endian === LE ? header.readUInt32LE(12) : header.readUInt32BE(12));
fieldsLengthPadded = ((fieldsLength + 7) >> 3) << 3;
Expand Down

0 comments on commit 850786d

Please sign in to comment.