Thanks ocicat!
Code here
http://www.cooperlabs.net/dfroguelike.tar.gz
I have managed to work around the save crash by having it create 40 "region files" when saving the world instead of one giant save file. The program now works up to the character generator, and only crashes now in macosx (works fine in bsd)
dont laugh at my code, i consider myself and "enthusiastic novice at C"
Edit: (gdb on macosx)
Code:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00007fff6076d300
0x00007fff80c8ec00 in strlen ()