Use the correct descriptor size.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-02-24 04:57:56 +00:00
parent c588b4278a
commit 5b1fc2da98

View File

@ -212,7 +212,7 @@ SocketConnection::WaitForData(bigtime_t timeout)
/* Set the socket in the mask. */
FD_SET(fSocket, &fds);
int result = select(32, &fds, NULL, NULL, &tv);
int result = select(fSocket + 1, &fds, NULL, NULL, &tv);
if (result == 0)
return B_TIMED_OUT;
if (result < 0)