From 5e65a9dd3ca3e2497461e25d5c1918f6944e3b3f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 5 Aug 2007 18:47:51 +0000 Subject: [PATCH] (xufld): Clarify. --- src/lib/common/xundump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index ac940d81..e839e207 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -215,7 +215,8 @@ xufld(FILE *fp, int i) case EOF: return gripe("Unexpected EOF"); case '\n': - if (i != nflds) { + CANT_HAPPEN(i > nflds); + if (i < nflds) { if (fldca[i]->ca_type != NSC_STRINGY && fldca[i]->ca_len) return gripe("Field %s(%d) missing", fldca[i]->ca_name, fldidx[i]);