Thanks. Why didn't you change the %ld into %d?
Well, %ld is used on other places, too and I assume authors had more than 32000 lines in mind ;)
Btw Helmut, what is xa_rewind() at ./xaaes/
src.km/xa_rsrc.c:618? GCC can't find a definition nor prototype.
--