Skip to content

Commit

Permalink
- use offset of 0, when unmarshalling message body
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry committed Apr 13, 2013
1 parent 3c00268 commit 1ae6ea5
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 @@ -53,7 +53,7 @@ var read = module.exports.read = function(dbus, opts) {

binarystream.buffer('bodyBuffer', bodyLength).tap(function(vars) {
var bodyStream = binary(vars.bodyBuffer);
unmarshall.call(bodyStream, message.signature, binarystream.globalOffset+4, function(err, data) {
unmarshall.call(bodyStream, message.signature, 0, function(err, data) {
if (err)
dbus.emit('error', err); // TODO: throw error instead of firing event?
message.body = data;
Expand Down

0 comments on commit 1ae6ea5

Please sign in to comment.