Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e967003b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Correct message length calculation while sending SMS"

parents 919973d1 dda37999
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -746,8 +746,7 @@ public abstract class BluetoothMapbMessage {
                 * END:MSG in the actual message content, it is now safe to use the END:MSG tag
                 * as terminator, and simply ignore the length field.*/

                /* 2 added to compensate for the removed \r\n */
                byte[] rawData = reader.getDataBytes(mBMsgLength - (line.getBytes().length + 2));
                byte[] rawData = reader.getDataBytes(mBMsgLength);
                String data;
                try {
                    data = new String(rawData, "UTF-8");