summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-ws.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-ws.c b/src/afb-ws.c
index 94fd30ea..c48a5e24 100644
--- a/src/afb-ws.c
+++ b/src/afb-ws.c
@@ -394,6 +394,7 @@ static ssize_t aws_writev(struct afb_ws *ws, const struct iovec *iov, int iovcnt
iov2[i] = iov[i];
}
iov2->iov_base += rc;
+ iov2->iov_len -= rc;
}
pfd.fd = ws->fd;
pfd.events = POLLOUT;