From 8a3a2148aa8c9d19734e6854d6cad8199f29e144 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 5 Apr 2010 15:54:21 +0200 Subject: [PATCH] iscc: test isl_stream for eof rather than the underlying FILE On hang-up, feof(stdin) apparently doesn't return 1 and so iscc could enter an infinite loop. --- iscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscc.c b/iscc.c index 2a77787..a8d3ff8 100644 --- a/iscc.c +++ b/iscc.c @@ -863,7 +863,7 @@ int main(int argc, char **argv) register_named_ops(s); - while (!feof(stdin)) { + while (!s->eof) { p = read_line(s, table, p); } -- 2.11.4.GIT