From: SÅ‚awomir Demeszko Date: Tue, 18 Nov 2014 15:07:32 +0000 (+0000) Subject: Fix improper part number in multipart SMS text messages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cef8ce433b5a29b49dfe8700fa7b0ddc2bbb9d20;p=project%2Fuqmi.git Fix improper part number in multipart SMS text messages Received multipart SMS messages has part number always one too high. --- 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: