diff options
Diffstat (limited to 'include/osmocore')
-rw-r--r-- | include/osmocore/msgb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h index e2755ef3..6dc07784 100644 --- a/include/osmocore/msgb.h +++ b/include/osmocore/msgb.h @@ -103,7 +103,7 @@ static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len) } static inline int msgb_tailroom(const struct msgb *msgb) { - return (msgb->data + msgb->data_len) - msgb->tail; + return (msgb->head + msgb->data_len) - msgb->tail; } /* increase the headroom of an empty msgb, reducing the tailroom */ |