Skip to content

Commit

Permalink
Bug : length 67*n bug solved
Browse files Browse the repository at this point in the history
 the remain of last part is length 140 instead of 0
  • Loading branch information
kaven276 committed Jun 5, 2012
1 parent 6901997 commit b052761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmds/cmdSubmit.js
Expand Up @@ -120,7 +120,7 @@ function Submit(UserNumber, MessageCoding, MessageContent, options){
Submit.prototype.followParts = function(PDU){
var splits = this.splits
, len = PDU.length
, remain = this.MessageContentParts.length % 140
, remain = this.MessageContentParts.length % 140 || 140
, PDUs = new Buffer(len * splits - (140 - remain))
, pos = len - 8 - 140
;
Expand Down

0 comments on commit b052761

Please sign in to comment.