aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--minui/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/events.c b/minui/events.c
index a619df6a..eb4497e1 100644
--- a/minui/events.c
+++ b/minui/events.c
@@ -81,7 +81,7 @@ int ev_init(ev_callback input_cb, void *data)
ev_fdinfo[ev_count].data = data;
ev_count++;
ev_dev_count++;
- if(ev_dev_count == MAX_DEVICES) break;
+ if(ev_dev_count == (MAX_DEVICES + MAX_MISC_FDS)) break;
}
}