Hi, i've tried compiling on Gentoo linux. Everything went ok, the game starts correctly, and i'm able to play regularly.
Except for savegames.
The game starts correctly the first time, and every time i delete the .lcs folder to clear savegames, while every time it does try to load a save it crashes with this error (tried with commits 673 and 691).
Completing the game in a single sitting looks like a nice challenge, but could you take a look at this bug?
*** buffer overflow detected ***: ./crimesquad terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f74f8436157]
/lib64/libc.so.6(+0xfef90)[0x7f74f8433f90]
/lib64/libc.so.6(__fread_chk+0x15b)[0x7f74f843478b]
./crimesquad[0x42b416]
./crimesquad[0x4046ef]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f74f83574bd]
./crimesquad[0x405cb1]
======= Memory map: ========
00400000-00561000 r-xp 00000000 fe:03 440247 /home/valerio/lcsgame-code-673/trunk/src/crimesquad
00760000-00761000 r--p 00160000 fe:03 440247 /home/valerio/lcsgame-code-673/trunk/src/crimesquad
00761000-00766000 rw-p 00161000 fe:03 440247 /home/valerio/lcsgame-code-673/trunk/src/crimesquad
00766000-00f5d000 rw-p 00000000 00:00 0
01943000-01a30000 rw-p 00000000 00:00 0 [heap]
7f74f8131000-7f74f8133000 r-xp 00000000 08:06 22675 /lib64/libdl-2.15.so
7f74f8133000-7f74f8333000 ---p 00002000 08:06 22675 /lib64/libdl-2.15.so
7f74f8333000-7f74f8334000 r--p 00002000 08:06 22675 /lib64/libdl-2.15.so
7f74f8334000-7f74f8335000 rw-p 00003000 08:06 22675 /lib64/libdl-2.15.so
7f74f8335000-7f74f84d6000 r-xp 00000000 08:06 22679 /lib64/libc-2.15.so
7f74f84d6000-7f74f86d5000 ---p 001a1000 08:06 22679 /lib64/libc-2.15.so
7f74f86d5000-7f74f86d9000 r--p 001a0000 08:06 22679 /lib64/libc-2.15.so
7f74f86d9000-7f74f86db000 rw-p 001a4000 08:06 22679 /lib64/libc-2.15.so
7f74f86db000-7f74f86df000 rw-p 00000000 00:00 0
7f74f86df000-7f74f86f4000 r-xp 00000000 08:06 22761 /lib64/libgcc_s.so.1
7f74f86f4000-7f74f88f3000 ---p 00015000 08:06 22761 /lib64/libgcc_s.so.1
7f74f88f3000-7f74f88f4000 r--p 00014000 08:06 22761 /lib64/libgcc_s.so.1
7f74f88f4000-7f74f88f5000 rw-p 00015000 08:06 22761 /lib64/libgcc_s.so.1
7f74f88f5000-7f74f89ea000 r-xp 00000000 08:06 1767 /lib64/libm-2.15.so
7f74f89ea000-7f74f8be9000 ---p 000f5000 08:06 1767 /lib64/libm-2.15.so
7f74f8be9000-7f74f8bea000 r--p 000f4000 08:06 1767 /lib64/libm-2.15.so
7f74f8bea000-7f74f8beb000 rw-p 000f5000 08:06 1767 /lib64/libm-2.15.so
7f74f8beb000-7f74f8cd0000 r-xp 00000000 fe:00 615683 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6.0.16
7f74f8cd0000-7f74f8ed0000 ---p 000e5000 fe:00 615683 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6.0.16
7f74f8ed0000-7f74f8ed8000 r--p 000e5000 fe:00 615683 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6.0.16
7f74f8ed8000-7f74f8eda000 rw-p 000ed000 fe:00 615683 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.6.3/libstdc++.so.6.0.16
7f74f8eda000-7f74f8eef000 rw-p 00000000 00:00 0
7f74f8eef000-7f74f8f4b000 r-xp 00000000 08:06 1069 /lib64/libncursesw.so.5.9
7f74f8f4b000-7f74f914a000 ---p 0005c000 08:06 1069 /lib64/libncursesw.so.5.9
7f74f914a000-7f74f914e000 r--p 0005b000 08:06 1069 /lib64/libncursesw.so.5.9
7f74f914e000-7f74f9150000 rw-p 0005f000 08:06 1069 /lib64/libncursesw.so.5.9
7f74f9150000-7f74f9172000 r-xp 00000000 08:06 22672 /lib64/ld-2.15.so
7f74f9173000-7f74f933a000 r--p 00000000 fe:00 3491 /usr/lib64/locale/locale-archive
7f74f933a000-7f74f9340000 rw-p 00000000 00:00 0
7f74f9366000-7f74f9369000 rw-p 00000000 00:00 0
7f74f9369000-7f74f9370000 r--s 00000000 fe:00 180 /usr/lib64/gconv/gconv-modules.cache
7f74f9370000-7f74f9371000 rw-p 00000000 00:00 0
7f74f9371000-7f74f9372000 r--p 00021000 08:06 22672 /lib64/ld-2.15.so
7f74f9372000-7f74f9373000 rw-p 00022000 08:06 22672 /lib64/ld-2.15.so
7f74f9373000-7f74f9374000 rw-p 00000000 00:00 0
7fff17dd4000-7fff17df6000 rw-p 00000000 00:00 0 [stack]
7fff17dff000-7fff17e00000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted