aboutsummaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-16 22:01:29 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-16 22:01:29 +0100
commitcadfeb9d6f1a1f3299b919819d208cdaede717b4 (patch)
tree206efb69a3d81abac3ec7ab5e9956b0ef397e528 /command.c
parent9d21406d68ebdce18110431fb24c9963dcc44373 (diff)
Parsing fix: allow empty last argument
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index bf6c29d..b701709 100644
--- a/command.c
+++ b/command.c
@@ -277,7 +277,7 @@ bool handle_input_line(struct conn_data *data,char *line,size_t linelen){
size_t cursor=cmdlen+1;
for(int i=0;i<nargs;i++){
- if(cursor>=linelen){
+ if(cursor>linelen){
debug("Connection %d sent too few parameters to command %s",data->fd,commands[cmdi].cmdname);
return true;
}