aboutsummaryrefslogtreecommitdiffstats
path: root/src/actionparser.c
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-19 23:59:37 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-19 23:59:37 +0300
commit22fca0324c162fa9a6abc5192aea2b5453c057b5 (patch)
treeb799fde22ee67221e69f8cf3c5445c0373a7cfca /src/actionparser.c
parent8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003 (diff)
downloadck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.gz
ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.tar.bz2
ck-22fca0324c162fa9a6abc5192aea2b5453c057b5.zip
Add list action (no docs)
Diffstat (limited to 'src/actionparser.c')
-rw-r--r--src/actionparser.c4
1 files changed, 2 insertions, 2 deletions
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;
}