diff --git a/src/parse.c b/src/parse.c index be1641f..f649dac 100644 --- a/src/parse.c +++ b/src/parse.c @@ -436,7 +436,7 @@ get_option(struct keyword **head) while (kw && kw->type != LIST_END) { switch (kw->type) { case WORD: - if (j > (PARSE_MAX_LIST - 1)) { + if (j >= (PARSE_MAX_LIST - 1)) { syntax(kw, "too much values in list"); return free_opt(o); } diff --git a/src/parse.h b/src/parse.h index f38185c..dfdedd7 100644 --- a/src/parse.h +++ b/src/parse.h @@ -21,7 +21,7 @@ #include #define INCLUDE_CMD "@include" -#define PARSE_MAX_LIST 10 +#define PARSE_MAX_LIST 32 #if defined(Bool) #define bool_t Bool