aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcc/src/input.c')
-rw-r--r--lcc/src/input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lcc/src/input.c b/lcc/src/input.c
index 4f0afc8..c2a084e 100644
--- a/lcc/src/input.c
+++ b/lcc/src/input.c
@@ -125,10 +125,11 @@ static void resynch(void) {
} else if (Aflag >= 2 && *cp != '\n')
warning("unrecognized control line\n");
while (*cp)
- if (*cp++ == '\n')
+ if (*cp++ == '\n') {
if (cp == limit + 1)
nextline();
else
break;
+ }
}