From: ceriel Date: Thu, 12 Mar 1987 22:29:25 +0000 (+0000) Subject: made just a little bit more robust X-Git-Tag: release-5-5~4403 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=21b427d4dfcae5102dcbaf7375937c89ff898101;p=ack.git made just a little bit more robust --- 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' ) ; }