Rockbox mail archiveSubject: backlight.c, being anal about
From: TP Diffenbach (rockbox_at_diffenbach.org)
In backlight.c, backlight_set_timeout takes an int named seconds (line 128):
void backlight_set_timeout(int seconds)
and doesn't check its value.
But it uses that value as an index in a 19 element array (line 66):
backlight_timer = HZ*backlight_timeout_value[backlight_timeout];
I suspect this is only being called from the config and settings code, but it
-- Archos FM has a Rockbox!
Page was last modified "Jan 10 2012" The Rockbox Crew