X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=02cc45e9562d62f74ce8fbc2710d860bab63d3c8;hb=c245d8f55ee094707771e5225dd91564ded4630c;hp=a3b0f0c1651b3db95a607e8b60c2de2f8c24693d;hpb=a6cb149215f419331165e3f8e484bcc492e7b9b1;p=xboard.git diff --git a/backend.c b/backend.c index a3b0f0c..02cc45e 100644 --- a/backend.c +++ b/backend.c @@ -14903,6 +14903,7 @@ if(appData.debugMode) fprintf(debugFP, "Append: in='%s' %d\n", text, addBraces); while (*text == '\n') text++; len = strlen(text); while (len > 0 && text[len - 1] == '\n') len--; + text[len] = NULLCHAR; if (len == 0) return;