From 22fca0324c162fa9a6abc5192aea2b5453c057b5 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Wed, 19 Sep 2018 23:59:37 +0300 Subject: Add list action (no docs) --- src/actionparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actionparser.c') diff --git a/src/actionparser.c b/src/actionparser.c index 4b8ed6b..de162c2 100644 --- a/src/actionparser.c +++ b/src/actionparser.c @@ -112,8 +112,8 @@ int parse_EDIT(UserOpt *opt) { return 1; } int parse_LIST(UserOpt *opt) { - /* List expects a maximum of than 2 arguments */ - if (optNum > pos + 2) { + /* List expects a maximum of than 3 arguments */ + if (optNum > pos + 3) { opt->err = PERR_LIST_WRONG; return -1; } -- cgit v1.2.3