summaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index a330334f8..49a86661b 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -100,6 +100,7 @@ separate_command (f_str_t *in, char c)
if (*p == c) {
*p = '\0';
in->begin = p + 1;
+ in->len -= r + 1;
return b;
}
p ++;
@@ -225,6 +226,7 @@ parse_header (struct worker_task *task, f_str_t *line)
}
/* Eat whitespaces */
g_strstrip (headern);
+ fstrstrip (line);
switch (headern[0]) {
case 'c':