From: Inaky Perez-Gonzalez <[email protected]>
---
src/smsutil.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/smsutil.c b/src/smsutil.c
index 17e0e0e..c57fe8b 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -2480,6 +2480,11 @@ static GSList *sms_assembly_add_fragment_backup(struct
sms_assembly *assembly,
if (node->bitmap[offset] & bit)
return NULL;
+ /* Iterate over the bitmap to find in which position
+ * should the fragment be inserted -- basically we
+ * walk each bit in the bitmap until the bit we care
+ * about (offset:bit) and count which are stored --
+ * that gives us in which position we have to insert. */
position = 0;
for (i = 0; i < offset; i++)
for (j = 0; j < 32; j++)
--
1.6.6.1
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono