summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte2010-02-24 22:54:11 +0100
committerHarald Welte2010-02-24 22:54:11 +0100
commitac778fb85d027a4af6e025cdc59c8be88a8eb6ad (patch)
tree61d9b93ca54f80541a66cc694b1069d86ad7ae80 /include
parentMerge remote branch 'origin/master' (diff)
downloadlibosmocore-ac778fb85d027a4af6e025cdc59c8be88a8eb6ad.tar.gz
libosmocore-ac778fb85d027a4af6e025cdc59c8be88a8eb6ad.tar.xz
libosmocore-ac778fb85d027a4af6e025cdc59c8be88a8eb6ad.zip
fix msgb_talroom() calculation
Diffstat (limited to 'include')
-rw-r--r--include/osmocore/msgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocore/msgb.h b/include/osmocore/msgb.h
index e2755ef..6dc0778 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 */