When not enough rows are supplied for a table with fixed size, treat
the rows missing at the end just like rows omitted elsewhere: make
them blank if the omission is permitted (tables nat and game), else
fail (tables sect and realm; no change).
if (!ef_truncate(cur_type, cur_id + 1))
return -1;
} else {
- return gripe("Expected %d more rows",
- ep->fids - (cur_id + 1));
+ if (!may_omit_id)
+ return gripe("Expected %d more rows",
+ ep->fids - (cur_id + 1));
+ omit_ids(cur_id + 1, ep->fids);
}
} else {
exp_id = expected_id(cur_id + 1, ep->fids);