From 135d3ac0792046c980a93f9ecb829cee6fdaea11 Mon Sep 17 00:00:00 2001 From: Christian Schlittchen Date: Sun, 3 Mar 2002 16:22:24 +0000 Subject: [PATCH] - Minifix readregion --- src/mapper/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapper/logging.c b/src/mapper/logging.c index 94a3ce01f..022f86790 100644 --- a/src/mapper/logging.c +++ b/src/mapper/logging.c @@ -38,7 +38,7 @@ log_read(const char * filename) while (*fp) fp=&(*fp)->next; fscanf(log, "LOGVERSION %d\n", &global.data_version); while (!feof(log)) { - fscanf(log, "%s", buf); + if(fscanf(log, "%s", buf) == EOF) break; if (strcmp(buf, "UNIT")==0) { int x, y; unit * u;