summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-11 09:28:23 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-11 09:28:23 +0200
commit8c6332649bcba5175cc3e66e06d47e43a81f182f (patch)
tree571b16dfea3cf6f0ebbaab790d341a221d8a9afc
parentd65a6985bf16e9a4b80e4e6dede1f1207f46f944 (diff)
ussd: gsm_7bit_decode will null terminate the string
-rw-r--r--src/gsm0480.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gsm0480.c b/src/gsm0480.c
index 4b1471f1..b4ba8305 100644
--- a/src/gsm0480.c
+++ b/src/gsm0480.c
@@ -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;
}
}