Fix off by one error in assembly serialize

The proper PDU was not being written out fully
This commit is contained in:
Denis Kenzior 2009-09-08 16:39:16 -05:00
parent 8a31dc3312
commit 785686ec6b
1 changed files with 1 additions and 1 deletions

View File

@ -2202,7 +2202,7 @@ static int sms_serialize(unsigned char *buf, const struct sms *sms)
sms_encode(sms, &len, &tpdu_len, buf + 1);
buf[0] = tpdu_len;
return len;
return len + 1;
}
static gboolean sms_deserialize(const unsigned char *buf,