diff options
author | Fernando Carrijo <fcarrijo@yahoo.com.br> | 2010-08-03 11:50:54 +0200 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2010-08-03 18:29:58 +0300 |
commit | 3a0c29feaea2f5aece073bc62ec6663e2bd57d9d (patch) | |
tree | 48987658b1047027e699fa7777c7984cd1cdc92b | |
parent | e37240e3b01f1167964d2eb5c1748c356df7b2f5 (diff) |
os: inputthread: Fix off-by-one error in WaitForInput
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
-rw-r--r-- | os/inputthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/inputthread.c b/os/inputthread.c index 676c7cc2f..a8c9fd361 100644 --- a/os/inputthread.c +++ b/os/inputthread.c @@ -114,7 +114,7 @@ WaitForInput(void* argument) } else { - for (i = 0; i <= NumDevicesThreaded; i++) + for (i = 0; i < NumDevicesThreaded; i++) if ((FD_ISSET(ThreadDevFunc[i].fd, &InputThreadFd)) && ThreadDevFunc[i].f) (*ThreadDevFunc[i].f)(ThreadDevFunc[i].closure); |