* winsup.h: Change strchr inline for strange gcc problem.

* select.cc (select_stuff::wait): Bounds check w4 array.
This commit is contained in:
Christopher Faylor
2000-08-10 19:33:54 +00:00
parent b58f5598cb
commit b5ae313ab5
4 changed files with 12 additions and 1 deletions

View File

@@ -250,6 +250,11 @@ 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)
{
set_errno (EINVAL);
return -1;
}
if (!s->startup (s, this))
{
__seterrno ();