diff --git a/src/lib/common/ef_load.c b/src/lib/common/ef_load.c index 0fd43597..ee9461d4 100644 --- a/src/lib/common/ef_load.c +++ b/src/lib/common/ef_load.c @@ -55,7 +55,7 @@ ef_load() else { int ch = getc(fp); if (ch != EOF) { - fprintf(stderr, "%s: Junk after the trailer\n", + fprintf(stderr, "%s: Junk after the table\n", ep->file); retval = -1; } diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 5a284707..8aa292b7 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -559,6 +559,9 @@ xundump(FILE *fp, char *file, int expected_table) if (need_sentinel) xuinitrow(type, row); + while ((ch = skipfs(fp)) == '\n') ; + ungetc(ch, fp); + ep->fids = ep->cids = row; return type; }