ecore_timer test: Pre-increment variable to prevent buffer overflow

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
Daniel Willmann 2013-04-12 10:10:25 +01:00
parent 34ce73badd
commit 53e7fb6edc
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ _timer2_cb(void *data)
struct _timers *timer = (struct _timers*)data;
// choose next settings (delay, interval, precision) for timer 1
if (timer->num_elem++ > 2)
if (++timer->num_elem > 2)
timer->num_elem = 0;
// check add/delay timer 2