Fix error in looping round array of descriptor info in new poll

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-01-29 23:07:15 +00:00
parent 714778800c
commit be9225500d

View file

@ -759,7 +759,7 @@ if (0) {
* inputs where multiple inputs are in use. Note - fdStart can be
* modified while we are in the loop (by recursive calls).
*/
if (fdStart >= end_inputs)
if (fdStart >= num_inputs)
{
fdStart = 0;
fdIndex = 0;
@ -873,7 +873,7 @@ if (0) {
completed = YES;
}
}
if (++fdIndex >= end_inputs)
if (++fdIndex >= num_inputs)
{
fdIndex = 0;
}