From 8c6332649bcba5175cc3e66e06d47e43a81f182f Mon Sep 17 00:00:00 2001
From: Holger Hans Peter Freyther <zecke@selfish.org>
Date: Mon, 11 Oct 2010 09:28:23 +0200
Subject: ussd: gsm_7bit_decode will null terminate the string

---
 src/gsm0480.c | 2 --
 1 file changed, 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;
 			}
 		}
-- 
cgit v1.2.3