Fix getting the offset into sms fragment bitmap.

Andrzej Zaborowski andrew.zaborowski at intel.com
Fri Aug 21 19:37:04 PDT 2009


Otherwise only 64 fragments fit.
---
 src/smsutil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/smsutil.c b/src/smsutil.c
index bae501e..fcff9aa 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -2132,7 +2132,7 @@ GSList *sms_assembly_add_fragment(struct sms_assembly *assembly,
 					const struct sms_address *addr,
 					guint16 ref, guint8 max, guint8 seq)
 {
-	int offset = seq / 8;
+	int offset = seq / 32;
 	int bit = 1 << (seq % 32);
 	GSList *l;
 	GSList *prev;
-- 
1.6.1



More information about the ofono mailing list