aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeboo <jeb00o@yahoo.com>2013-10-06 16:48:52 -0400
committerjeboo <jeb00o@yahoo.com>2013-10-06 16:48:52 -0400
commit0624f20d750d90ce7342fd362b6932dfd656f64b (patch)
tree2d05f801b97d523a183fe223d0d2712376d20299
parent9a786a75c55f23ac46ae67cfcd6217636ab863ab (diff)
downloadandroid_bootable_recovery-0624f20d750d90ce7342fd362b6932dfd656f64b.tar.gz
android_bootable_recovery-0624f20d750d90ce7342fd362b6932dfd656f64b.tar.bz2
android_bootable_recovery-0624f20d750d90ce7342fd362b6932dfd656f64b.zip
Update events.c
Array max is incorrectly calculated, can lead to missed events for ids > MAX_DEVICES
-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;
}
}