From dc5af826f816b8b15fd01d674e66f1c7f1f87c99 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 24 Aug 2011 09:58:35 +0200 Subject: [PATCH] Fix treatment of PGN score/depth info with linefeeds in them This is needed to make the PGN more Arena-proof. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 ) { -- 1.7.0.4