ussd: gsm_7bit_decode will null terminate the string

This commit is contained in:
Holger Hans Peter Freyther 2010-10-11 09:28:23 +02:00
parent d65a6985bf
commit 8c6332649b
1 changed files with 0 additions and 2 deletions

View File

@ -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;
gsm_7bit_decode(req->text,
&(uss_req_data[7]), num_chars);
/* append null-terminator */
req->text[num_chars+1] = 0;
rc = 1;
}
}