Commit c7852797 authored by Martti Mela's avatar Martti Mela

su_select_port_wait_events() determines bytes based on FDSETSIZE

darcs-hash:20070430120812-1b897-85e72eaaa5d30e5021a4c03b54500f91b59a1cbf.gz
parent 7dba71d3
......@@ -560,7 +560,7 @@ int su_select_port_wait_events(su_port_t *self, su_duration_t tout)
if (self->sup_maxfd == 0)
su_select_port_update_maxfd(self);
bytes = self->sup_maxfd ? FDSETSIZE(self->sup_maxfd - 1) : 0;
bytes = FDSETSIZE(self->sup_maxfd);
if (bytes) {
rset = memcpy(self->sup_readfds2, self->sup_readfds, bytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment