From 92a123a47d5a581990b3c218387ffead352ca5cb Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 8 Dec 2003 16:55:50 +0000 Subject: [PATCH] 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. --- simgear/nasal/lex.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.5