From e8b98f308ea783de5500bf265cc52bcc8ac94077 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 14 Apr 2011 20:42:42 +0200 Subject: [PATCH] Fix client to log long input lines untruncated They can still get split by output arriving between two reads from input, but that's unavoidable, because the client is designed to read and write big chunks, not lines. --- src/client/play.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/play.c b/src/client/play.c index 4979bae5..03718c79 100644 --- a/src/client/play.c +++ b/src/client/play.c @@ -432,11 +432,11 @@ recv_input(int fd, struct ring *inbuf) assert(ch != EOF); if (ch != '\r' && lbuf_putc(&cmdbuf, ch) > 0) { line = lbuf_line(&cmdbuf); - if (auxfp) - fputs(line, auxfp); save_input(line); lbuf_init(&cmdbuf); } + if (auxfp) + putc(ch, auxfp); } return res;