From 438254db34608808f7d521fe871e21393542c556 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 24 May 2017 11:47:49 +0200 Subject: server: Actually check the entire command name Previously, l(o(g(in?)?)?)? meant "login", since only the cmdlen prefix of the registered command was matched against the sent command. Discovered by surprisedly seeing "list_room" work. --- command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index 01aff9e..1b70369 100644 --- a/command.c +++ b/command.c @@ -362,7 +362,8 @@ bool handle_input_line(struct conn_data *data,char *line,size_t linelen){ size_t cmdlen=sepp-line; size_t cmdi; for(cmdi=0;cmdi