summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings_list.c')
-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 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;