From: andy Date: Mon, 8 Dec 2003 16:55:50 +0000 (+0000) Subject: Extra i++ led to a "double skip" when parsing a \r\n pair. So a DOS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92a123a47d5a581990b3c218387ffead352ca5cb;p=simgear.git Extra i++ led to a "double skip" when parsing a \r\n pair. So a DOS file would look like it was all on one line, and a comment would skip to the end of the file. --- diff --git a/simgear/nasal/lex.c b/simgear/nasal/lex.c index adc08e17..1cb3a22a 100644 --- a/simgear/nasal/lex.c +++ b/simgear/nasal/lex.c @@ -58,7 +58,6 @@ static int* findLines(struct Parser* p) // Skip over the \r of a \r\n pair. if(buf[i] == '\r' && (i+1)len && buf[i+1] == '\n') { - i++; continue; } // Reallocate if necessary