diff options
Diffstat (limited to 'apps/settings_list.c')
-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 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) | |||
568 | static char* qs_write_to_cfg(void* setting, char*buf, int buf_len) | 568 | static char* qs_write_to_cfg(void* setting, char*buf, int buf_len) |
569 | { | 569 | { |
570 | int index = *(int*)setting; | 570 | int index = *(int*)setting; |
571 | if (index < 0 || index >= nb_settings - 1) | 571 | if (index < 0 || index >= nb_settings) |
572 | { | 572 | { |
573 | strlcpy(buf, "-", buf_len); | 573 | strlcpy(buf, "-", buf_len); |
574 | return buf; | 574 | return buf; |