From 3649ae6793325113ae8e8941d1fe1943b45fea8f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 25 Aug 2009 20:26:20 -0700 Subject: [PATCH] bug in backend.c when receiving lines from ICS A space was appended to every character received from an ICS in stead of just at line breaks. --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 1d5ca17..73aed9d 100644 --- a/backend.c +++ b/backend.c @@ -2110,9 +2110,10 @@ read_from_ics(isr, closure, data, count, error) if (data[i] != NULLCHAR && data[i] != '\r') buf[buf_len++] = data[i]; if(buf_len >= 5 && buf[buf_len-5]=='\n' && buf[buf_len-4]=='\\' && - buf[buf_len-3]==' ' && buf[buf_len-2]==' ' && buf[buf_len-1]==' ') + buf[buf_len-3]==' ' && buf[buf_len-2]==' ' && buf[buf_len-1]==' ') { buf_len -= 5; // [HGM] ICS: join continuation line of Lasker 2.2.3 server with previous buf[buf_len++] = ' '; // replace by space (assumes ICS does not break lines within word) + } } buf[buf_len] = NULLCHAR; -- 1.7.0.4