summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_receive.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/unixmessage_receive.c')
-rw-r--r--src/libunixonacid/unixmessage_receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunixonacid/unixmessage_receive.c b/src/libunixonacid/unixmessage_receive.c
index fed1b03..5ff81bf 100644
--- a/src/libunixonacid/unixmessage_receive.c
+++ b/src/libunixonacid/unixmessage_receive.c
@@ -63,7 +63,7 @@ static int unixmessage_receiver_fill (unixmessage_receiver_t *b, diuint *d)
if (cbuffer_put(&b->auxb, (char *)CMSG_DATA(c), auxlen) < auxlen)
return (errno = ENOBUFS, -1) ;
d->right = auxlen / sizeof(int) ;
- r -= c->cmsg_len ;
+ r -= msghdr.msg_controllen ;
}
}
d->left = cbuffer_WSEEK(&b->mainb, r) ;