From fe3db6cc89fa082c9eb7e5ccf977a57871509b89 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 10 Aug 2004 15:05:37 +0000 Subject: * select.cc (select_stuff::wait): Correctly check for w4 array bounds. --- winsup/cygwin/select.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/select.cc') diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index eba122e66..b24446928 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -233,7 +233,7 @@ select_stuff::wait (fd_set *readfds, fd_set *writefds, fd_set *exceptfds, counting the number of active fds. */ while ((s = s->next)) { - if (m > MAXIMUM_WAIT_OBJECTS) + if (m >= MAXIMUM_WAIT_OBJECTS) { set_sig_errno (EINVAL); return -1; -- cgit v1.2.3