From: Eric Mullins Date: Thu, 15 Oct 2009 22:54:51 +0000 (-0600) Subject: Adjustment to joining to work around server not always including space. X-Git-Tag: v4.4.1.20091019~13 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=6ee5f4d3418f9b1b6c537ebf8a9ddd59341877c5 Adjustment to joining to work around server not always including space. This patch implements commit 98aa02bda540f17f1f50be00e494efafe439b004 into the updated joining routine. This issue seems not to be server variance, but instead the server electing to omit the space between words when it occurs at exactly your width setting (-1 actually). This patch makes the joiner add back the space just like the referenced commit. Note: this is just a workaround to a server issue-- the joiner actually joins correctly before this patch. --- diff --git a/backend.c b/backend.c index 0bbe876..e197f00 100755 --- a/backend.c +++ b/backend.c @@ -2055,9 +2055,9 @@ read_from_ics(isr, closure, data, count, error) static char buf[BUF_SIZE + 1]; static int firstTime = TRUE, intfSet = FALSE; static ColorClass prevColor = ColorNormal; - static int savingComment = FALSE; - static int cmatch = 0; // continuation sequence match - char *bp; + static int savingComment = FALSE; + static int cmatch = 0; // continuation sequence match + char *bp; char str[500]; int i, oldi; int buf_len; @@ -2088,53 +2088,67 @@ read_from_ics(isr, closure, data, count, error) buf[i] = buf[leftover_start + i]; } - /* copy new characters into the buffer */ - bp = buf + leftover_len; - buf_len=leftover_len; - for (i=0; i