/[projects]/smsdaemon/SmsPdu.cpp
ViewVC logotype

Diff of /smsdaemon/SmsPdu.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 62 by torben, Thu Jun 12 12:04:32 2008 UTC revision 63 by torben, Thu Jun 12 12:43:29 2008 UTC
# Line 10  Line 10 
10  #include <time.h>  #include <time.h>
11  #include <stdlib.h>  #include <stdlib.h>
12    
13    #include "common.h"
14  #include "util.h"  #include "util.h"
15    
16    
# Line 160  vector<PduInfo> CreateSmsPdu(string to, Line 160  vector<PduInfo> CreateSmsPdu(string to,
160                  }                  }
161                  else                  else
162                  {                  {
163                          message_part = message.substr(0,160); //truncate to 160                          if (message.length() > 160)
164                            {
165                                    message_part = message.substr(0,160); //truncate to 160
166                                    Common::instance()->logMessage("Truncated message");
167                            }
168                            else
169                            {
170                                    message_part = message;
171                            }
172    
173                          pdu.push_back( message_part.length() ); //UserDataLength                          pdu.push_back( message_part.length() ); //UserDataLength
174                  }                  }

Legend:
Removed from v.62  
changed lines
  Added in v.63

  ViewVC Help
Powered by ViewVC 1.1.20