From 95a2523b9f25806e010e5927524d1cd84b017c18 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 1 Dec 2005 19:28:31 +0000 Subject: [PATCH] (xuflds): Fix confusing diagnostics on unexpected EOF. --- src/lib/common/xundump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 1cbe177f..7210674c 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -117,6 +117,8 @@ xuflds(FILE *fp, struct value values[]) ungetc(ch, fp); switch (ch) { + case EOF: + return gripe("Unexpected EOF"); case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':