[PATC] Fix to remove extra ü-characters from concatenated incoming message

Matti Ärmänen <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hello,
in the cvs version there is the new functionality to concatenate the 
incoming MO-messages. Without this patch there is ü-character (0xc3 
0xbc) at the end of each part or some other character at the end of the 
last part of the message. The attached patch removes these extra 
characters so that the resulted message is the same as the originally 
sent message.

The reference file is bb_smscconn.c version 1.98

Regards,
Matti Ärmänen
patch2.txt (text/plain, 435 B)
--- bb_smscconn.c       9 Oct 2008 23:58:45 -0000       1.98
+++ bb_smscconn.c       16 Nov 2008 14:22:04 -0000
@@ -1426,6 +1426,7 @@
         msg_destroy(msg);
         *pmsg = msg = NULL;
     } else {
+       octstr_truncate(msg->sms.msgdata, (octstr_len(msg->sms.msgdata)-2));
         cmsg->parts[part -1] = msg;
         cmsg->num_parts++;
         /* always update receive time so we have it from last part and don't timeout */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.