fix quick screen write to config
Change-Id: Id55f81011a9ce47589d879203ca4f8fd4c54f593 Reviewed-on: http://gerrit.rockbox.org/757 Reviewed-by: Thomas Martitz <kugel@rockbox.org>
This commit is contained in:
parent
1cf17436b7
commit
a98787148a
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ static void qs_load_from_cfg(void* var, char*value)
|
|||
static char* qs_write_to_cfg(void* setting, char*buf, int buf_len)
|
||||
{
|
||||
int index = *(int*)setting;
|
||||
if (index < 0 || index >= nb_settings - 1)
|
||||
if (index < 0 || index >= nb_settings)
|
||||
{
|
||||
strlcpy(buf, "-", buf_len);
|
||||
return buf;
|
||||
|
|
Loading…
Reference in a new issue