summaryrefslogtreecommitdiffstats
path: root/ui/rccnames.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/rccnames.c')
-rw-r--r--ui/rccnames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/rccnames.c b/ui/rccnames.c
index e4f4b48..961dbbc 100644
--- a/ui/rccnames.c
+++ b/ui/rccnames.c
@@ -24,7 +24,7 @@ const char *rccUiGetOptionName(rcc_ui_context ctx, rcc_option option) {
names = ctx->option_names;
- for (i=0;i<RCC_MAX_OPTIONS;i++)
+ for (i=0;((i<RCC_MAX_OPTIONS)&&(names[i].option!=RCC_MAX_OPTIONS));i++)
if (names[i].option == option) return names[i].name;
return NULL;