I have the same problem with strcpy() ..
It seems don't take care about EOF .
I have wrote my own, with special EOF/EOL caracter in my txt file.
Cool, good that you made as workaround for it. Meh... broken stuff sucks.
By the way... anyone who's wondering how much work goes into something like this...
The main sourcecode for Toren is 2490 lines of C code. That doesn't include the library header and all of the generic extra inclusions:
sampleheader.h: 2 lines (offset data for the ADPCM sample bank)
campspells.c: 183 lines (selection and display of out-of-battle magics)
common.c: 1429 lines (game engine library code... areas cannot exist without this module)
commontown.c: 239 lines (code only used for towns; primarily shop-related)
bonusfeatures.c: 87 lines (code to handle the system data for unlocking bonus features)
Comes out to about 4430 lines of C. Might be able to cut that down by about 50 for linebreaks between functions and each source's topline comment. This is just one source though... every source is different, as each area has its own unique functions and requirements.