From cadfeb9d6f1a1f3299b919819d208cdaede717b4 Mon Sep 17 00:00:00 2001
From: tomsmeding <tom.smeding@gmail.com>
Date: Thu, 16 Mar 2017 22:01:29 +0100
Subject: Parsing fix: allow empty last argument

---
 command.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 		}
-- 
cgit v1.2.3-70-g09d2