diff options
| author | Dmitry Gamza <gamzad@yahoo.com> | 2014-02-10 17:39:12 +0400 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-03-18 10:58:24 +0100 |
| commit | a98787148a694f9474a6d2b5ba103d4fbef6b91f (patch) | |
| tree | 34bb06b82b7d29f3b6125ec10cbdbf144db59cb2 | |
| parent | 1cf17436b77659aa59e205c1dcf62b4fe485e95e (diff) | |
| download | rockbox-a98787148a694f9474a6d2b5ba103d4fbef6b91f.zip rockbox-a98787148a694f9474a6d2b5ba103d4fbef6b91f.tar.gz rockbox-a98787148a694f9474a6d2b5ba103d4fbef6b91f.tar.bz2 rockbox-a98787148a694f9474a6d2b5ba103d4fbef6b91f.tar.xz | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 1ef9c62..648cb42 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; |