From cef8ce433b5a29b49dfe8700fa7b0ddc2bbb9d20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C5=82awomir=20Demeszko?= Date: Tue, 18 Nov 2014 15:07:32 +0000 Subject: [PATCH] Fix improper part number in multipart SMS text messages Received multipart SMS messages has part number always one too high. --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index 01e6867..9b9aac3 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -178,7 +178,7 @@ static void decode_udh(const unsigned char *data) switch (type) { case 0: blobmsg_add_u32(&status, "concat_ref", (uint32_t) val[0]); - blobmsg_add_u32(&status, "concat_part", (uint32_t) val[2] + 1); + blobmsg_add_u32(&status, "concat_part", (uint32_t) val[2]); blobmsg_add_u32(&status, "concat_parts", (uint32_t) val[1]); break; default: -- 2.25.1