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

Commit 2111eebf authored by Harshavardhan Nalajala's avatar Harshavardhan Nalajala Committed by android-build-merger
Browse files

Merge "Correct message length calculation while sending SMS"

am: e967003b

* commit 'e967003b':
  Correct message length calculation while sending SMS

Change-Id: I94ce84c8460a62b7c768fb242a2fdc36abc24f80
parents d0881113 e967003b
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");