follow-up - Change the terminology in mO menu

This commit is contained in:
nhmall
2023-02-08 00:06:56 -05:00
parent 08404ddac3
commit 6cc35abba3
2 changed files with 5 additions and 5 deletions

View File

@@ -8572,13 +8572,13 @@ term_for_boolean(int idx, boolean *b)
int i, f_t = (*b) ? 1: 0;
const char *boolean_term;
static const char *const booleanterms[2][num_terms] = {
{ "false", "off", "disabled", },
{ "true", "on", "enabled", },
{ "false", "off", "disabled", "excluded from build" },
{ "true", "on", "enabled", "included"},
};
boolean_term = booleanterms[f_t][0];
i = (int) allopt[idx].termpref;
if (i > Term_False && i < num_terms)
if (i > Term_False && i < num_terms && i < SIZE(booleanterms[0]))
boolean_term = booleanterms[f_t][i];
return boolean_term;
}