From: H.G. Muller Date: Wed, 26 Aug 2009 03:26:20 +0000 (-0700) Subject: bug in backend.c when receiving lines from ICS X-Git-Tag: v4.4.0.beta2~9 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3649ae6793325113ae8e8941d1fe1943b45fea8f;p=xboard.git 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. --- 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;