From 21b427d4dfcae5102dcbaf7375937c89ff898101 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 12 Mar 1987 22:29:25 +0000 Subject: [PATCH] made just a little bit more robust --- util/LLgen/src/gencode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/LLgen/src/gencode.c b/util/LLgen/src/gencode.c index a6493ced8..4bbd05b98 100644 --- a/util/LLgen/src/gencode.c +++ b/util/LLgen/src/gencode.c @@ -303,6 +303,7 @@ controlline() { assert(l == '\0'); do { l = getc(f1); + if (l == EOF) fatal(0, "temp file mangled"); putc(l,f2); } while ( l != '\n' ) ; }