Fix empdump not to grow game state files with fixed size

empdump -i now complains about extra rows instead of silently growing
the file to a size the server will reject.  Affects tables sector,
nation, realms, game.

Bonus fix: better error message on I/O error or insufficient memory.
This commit is contained in:
Markus Armbruster 2011-05-03 07:53:37 +02:00
parent 73bd5d6aa3
commit 58ed1d1b9e
3 changed files with 32 additions and 5 deletions

View file

@ -219,6 +219,7 @@ extern int ef_write(int, int, void *);
extern void ef_set_uid(int, void *, int);
extern int ef_extend(int, int);
extern int ef_ensure_space(int, int, int);
extern int ef_id_limit(int);
extern int ef_truncate(int, int);
extern int ef_nelem(int);
extern int ef_flags(int);