Permalink
Browse files

bug fix to pdu parser (have to increment buffer position after reading)

  • Loading branch information...
1 parent 411fb31 commit 6ef1cb421a6249ef15e734f2e94ba926b764367f @bjyoungblood bjyoungblood committed Feb 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/pdu-parser.js
View
2 lib/pdu-parser.js
@@ -179,7 +179,9 @@ exports.parse = function(buffer) {
// type it is (bitmask, string, int, etc). the smpp command handler can
// take care of that (or even the user's application code)
value = new Buffer(length);
+
buffer.copy(value, 0, offset, offset + length);
+ offset += length;
result.optional_params[smpp.optional_param_tags[tag]] = value;
}

0 comments on commit 6ef1cb4

Please sign in to comment.