Suppress a CR at the end of a GSM 7-bit string if the message exactly fit in octets, most likely it was added as padding.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4778 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
1c5549e683
commit
7e33e6b652
|
@ -1449,6 +1449,8 @@ static void decodeGSM7Bit(DataBlock& data, int& len, String& decoded)
|
|||
}
|
||||
}
|
||||
data.cut(-len);
|
||||
if ((bits == 0) && decoded.endsWith("\r"))
|
||||
decoded.assign(decoded,decoded.length()-1);
|
||||
}
|
||||
|
||||
static bool decodeGSMString(const Parameter* param, MapCamelType* type, AsnTag& tag, DataBlock& data, XmlElement* parent, bool addEnc, int& err)
|
||||
|
|
Loading…
Reference in New Issue