X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=lex.c;h=3474a15523b27055716617a802e651f593f1bf3f;hb=ac09fe874e77b559d7b6de36d913a8cb064c9210;hp=2b1b60fea25bc850c00d88b9355173be0b678a10;hpb=4e0c88b473dffdefb830e6806c3692aab6b4fa0c;p=pgn-extract diff --git a/lex.c b/lex.c index 2b1b60f..3474a15 100644 --- a/lex.c +++ b/lex.c @@ -332,7 +332,7 @@ gather_string(char *line, unsigned char *linep) if(!GlobalState.skipping_current_game) { fprintf(GlobalState.logfile,"Missing closing quote in %s\n",line); } - if(len != 1){ + if(len > 1){ /* Move back to the null. */ linep--; str[len-1] = '\0';