ussd_proxy: fix decoding GSM7 to latin1

This commit is contained in:
Sergey.Kostanbaev 2016-10-25 12:27:03 +03:00 committed by Ivan Kluchnikov
parent 8a8703e06c
commit fb5a18db4b
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ static int decode_to_latin1(char* outbuf, unsigned size,
const uint8_t* msg, unsigned msg_len, uint8_t lang)
{
if (lang == 0x0f) {
return gsm_7bit_decode_n_ussd(outbuf, size, msg, msg_len);
return gsm_7bit_decode_n_ussd(outbuf, size, msg, msg_len * 8 / 7);
} else {
LOGP(DLCTRL, LOGL_ERROR, "Unknown language: 0x%02x\n", lang);
return 0;