mirror of https://gerrit.osmocom.org/libosmocore
ussd: gsm_7bit_decode will null terminate the string
This commit is contained in:
parent
d65a6985bf
commit
8c6332649b
|
@ -403,8 +403,6 @@ static int parse_process_uss_req(const uint8_t *uss_req_data, uint16_t length,
|
||||||
num_chars = MAX_LEN_USSD_STRING;
|
num_chars = MAX_LEN_USSD_STRING;
|
||||||
gsm_7bit_decode(req->text,
|
gsm_7bit_decode(req->text,
|
||||||
&(uss_req_data[7]), num_chars);
|
&(uss_req_data[7]), num_chars);
|
||||||
/* append null-terminator */
|
|
||||||
req->text[num_chars+1] = 0;
|
|
||||||
rc = 1;
|
rc = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue