From 10f981a4a1ec98befdc3184a6842369ae5b26d5b Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Wed, 6 Jan 2016 16:41:43 +0100 Subject: [PATCH] stream: Use macros to access data and length --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index 0736ba7..fd02b74 100644 --- a/src/stream.c +++ b/src/stream.c @@ -641,7 +641,7 @@ int osmo_stream_srv_recv(struct osmo_stream_srv *conn, struct msgb *msg) { int ret; - ret = recv(conn->ofd.fd, msg->data, msg->data_len, 0); + ret = recv(conn->ofd.fd, msgb_data(msg), msgb_tailroom(msg), 0); if (ret < 0) { if (errno == EPIPE || errno == ECONNRESET) { LOGP(DLINP, LOGL_ERROR,