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:
parent
daf753477e
commit
e6373b7f63
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue