projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6432014
)
Fix treatment of PGN score/depth info with linefeeds in them
author
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 24 Aug 2011 07:58:35 +0000 (09:58 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Fri, 26 Aug 2011 11:04:12 +0000 (13:04 +0200)
This is needed to make the PGN more Arena-proof.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
ebe010e
..
a49155c
100644
(file)
--- 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 ) {