about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-05 23:46:23 +0000
committerMiles Bader <miles@gnu.org>1996-03-05 23:46:23 +0000
commit5ac0712ca5c66a2b6c606ae27b9ee0aebe968b2b (patch)
treedaf6482b4ee3415dcdc1045fc058cc96afab36a1
parentb49d86bd21b58f4eccd7aba4714d2a0c7cffb57f (diff)
downloadglibc-5ac0712ca5c66a2b6c606ae27b9ee0aebe968b2b.tar.gz
glibc-5ac0712ca5c66a2b6c606ae27b9ee0aebe968b2b.tar.xz
glibc-5ac0712ca5c66a2b6c606ae27b9ee0aebe968b2b.zip
(__select): Include LASTFD in the final loop.
-rw-r--r--sysdeps/mach/hurd/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/select.c b/sysdeps/mach/hurd/select.c
index d1702874cc..8e78adb1bc 100644
--- a/sysdeps/mach/hurd/select.c
+++ b/sysdeps/mach/hurd/select.c
@@ -275,7 +275,7 @@ DEFUN(__select, (nfds, readfds, writefds, exceptfds, timeout),
 
   /* Set the user bitarrays.  We only ever have to clear bits, as all desired
      ones are initially set.  */
-  for (i = firstfd; i < lastfd; ++i)
+  for (i = firstfd; i <= lastfd; ++i)
     {
       int type = types[i];