xundump(FILE *fp, char *file, int expected_table)
{
struct castr *ca;
- int type, nca, i;
+ int type, nca, i, ch;
if (fname != file) {
fname = file;
cur_type = type;
if (human) {
+ while ((ch = skipfs(fp)) == '\n')
+ lineno++;
+ ungetc(ch, fp);
if (xuflds(fp, xufldname) < 0)
type = EF_BAD;
} else {
int row, ch;
for (row = 0;; ++row) {
- ch = skipfs(fp);
+ while ((ch = skipfs(fp)) == '\n')
+ lineno++;
if (ch == '/')
break;
ungetc(ch, fp);