Skip to content
Browse files

Bug : length 67*n bug solved

 the remain of last part is length 140 instead of 0
  • Loading branch information...
1 parent 6901997 commit b05276109773495925461630f4e3940c49b36b75 @kaven276 committed Jun 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cmds/cmdSubmit.js
View
2 lib/cmds/cmdSubmit.js
@@ -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
;

0 comments on commit b052761

Please sign in to comment.
Something went wrong with that request. Please try again.