diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-16 22:01:29 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-16 22:01:29 +0100 |
commit | cadfeb9d6f1a1f3299b919819d208cdaede717b4 (patch) | |
tree | 206efb69a3d81abac3ec7ab5e9956b0ef397e528 | |
parent | 9d21406d68ebdce18110431fb24c9963dcc44373 (diff) |
Parsing fix: allow empty last argument
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |