From: H.G. Muller Date: Wed, 24 Aug 2011 07:58:35 +0000 (+0200) Subject: Fix treatment of PGN score/depth info with linefeeds in them X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=dc5af826f816b8b15fd01d674e66f1c7f1f87c99;p=xboard.git Fix treatment of PGN score/depth info with linefeeds in them This is needed to make the PGN more Arena-proof. --- diff --git a/backend.c b/backend.c index ebe010e..a49155c 100644 --- a/backend.c +++ b/backend.c @@ -14738,7 +14738,7 @@ char *GetInfoFromComment( int index, char * text ) while( *++sep >= '0' && *sep <= '9'); // strip seconds if(deci >= 0) while( *++sep >= '0' && *sep <= '9'); // strip fractional seconds - while(*sep == ' ') sep++; + while(*sep == ' ' || *sep == '\n' || *sep == '\r') sep++; } if( depth <= 0 ) {