gsm_04_80: Fix the size calculation of the 04.80 message..

Subtract the two bytes we were adding to the length of the message.
This commit is contained in:
Holger Hans Peter Freyther 2010-07-27 01:25:59 +08:00
parent daf753477e
commit e6373b7f63
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ static inline unsigned char *msgb_wrap_with_TL(struct msgb *msgb, u_int8_t tag)
uint8_t *data = msgb_push(msgb, 2);
data[0] = tag;
data[1] = msgb->len;
data[1] = msgb->len - 2;
return data;
}