[haiku-commits] r40652 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 24 Feb 2011 05:57:57 +0100 (CET)

Author: czeidler
Date: 2011-02-24 05:57:56 +0100 (Thu, 24 Feb 2011)
New Revision: 40652
Changeset: http://dev.haiku-os.org/changeset/40652

Modified:
   
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp
Log:
Use the correct descriptor size.



Modified: 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp
===================================================================
--- 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp
    2011-02-24 03:28:28 UTC (rev 40651)
+++ 
haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/ServerConnection.cpp
    2011-02-24 04:57:56 UTC (rev 40652)
@@ -212,7 +212,7 @@
        /* 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)


Other related posts:

  • » [haiku-commits] r40652 - haiku/trunk/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib - clemens . zeidler