From ab1bffddb3574d18d36f321dce81e7e170abb3d6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 6 Jul 2015 18:42:36 +0200 Subject: [PATCH] ubusd: fix offset calculation (based on patch by Yang Chao) Signed-off-by: Felix Fietkau --- ubusd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubusd.c b/ubusd.c index 65b82ca..aa72351 100644 --- a/ubusd.c +++ b/ubusd.c @@ -242,7 +242,7 @@ retry: fd_buf.fd = -1; - iov.iov_base = &cl->hdrbuf + offset; + iov.iov_base = ((char *) &cl->hdrbuf) + offset; iov.iov_len = sizeof(cl->hdrbuf) - offset; if (cl->pending_msg_fd < 0) { -- 2.11.0