Fix getting the offset into sms fragment bitmap.

Otherwise only 64 fragments fit.
This commit is contained in:
Andrzej Zaborowski 2009-08-22 04:37:04 +02:00 committed by Denis Kenzior
parent 4750081d72
commit 64ade1c7c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;