diff options
author | Sławomir Demeszko <s.demeszko@wireless-instruments.com> | 2014-11-18 15:07:32 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-11-18 22:01:21 +0100 |
commit | cef8ce433b5a29b49dfe8700fa7b0ddc2bbb9d20 (patch) | |
tree | a9dee422930bbd20e0b2010ad463c00a56af87b8 | |
parent | 083556df6424f796012161eb472175c56ff91146 (diff) |
Fix improper part number in multipart SMS text messages
Received multipart SMS messages has part number always one too high.
-rw-r--r-- | commands-wms.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |