summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gamza <gamzad@yahoo.com>2014-02-10 17:39:12 +0400
committerThomas Martitz <kugel@rockbox.org>2014-03-18 10:58:24 +0100
commita98787148a694f9474a6d2b5ba103d4fbef6b91f (patch)
tree34bb06b82b7d29f3b6125ec10cbdbf144db59cb2
parent1cf17436b77659aa59e205c1dcf62b4fe485e95e (diff)
downloadrockbox-a987871.tar.gz
rockbox-a987871.zip
fix quick screen write to config
Change-Id: Id55f81011a9ce47589d879203ca4f8fd4c54f593 Reviewed-on: http://gerrit.rockbox.org/757 Reviewed-by: Thomas Martitz <kugel@rockbox.org>
-rw-r--r--apps/settings_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 1ef9c62bf0..648cb420cf 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -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;