From 5b1fc2da98a35f15b9c8abde2c9b9c1d5c4764c7 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Thu, 24 Feb 2011 04:57:56 +0000 Subject: [PATCH] Use the correct descriptor size. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40652 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../inbound_protocols/imap/imap_lib/ServerConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp index 6299dba1d7..597c85ebe9 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp @@ -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)