From 411f854ef609b66806ca7f2ce364d2f2137abe40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C5=82awomir=20Demeszko?= Date: Mon, 22 Dec 2014 19:02:57 +0100 Subject: [PATCH] Fix improper length of sms message stored in User Data Length field MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: SÅ‚awomir Demeszko --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index c5be0f0..2e4e08f 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -591,7 +591,7 @@ pdu_encode_data(unsigned char *dest, const char *str) dest[len++] = 0; len += pdu_encode_7bit_str(&dest[len], str); - dest[0] = len - 1; + dest[0] = strlen(str); return len; } -- 2.25.1