Run on Linux, valgrind shows:
==27887== Invalid read of size 4
==27887== at 0x8048C5A: main (wha.c:113)
==27887== Address 0x41811d4 is 0 bytes after a block of size 364 alloc'd
==27887== ...
Type: Posts; User: rags_to_riches
Run on Linux, valgrind shows:
==27887== Invalid read of size 4
==27887== at 0x8048C5A: main (wha.c:113)
==27887== Address 0x41811d4 is 0 bytes after a block of size 364 alloc'd
==27887== ...
What about some sample data that causes the crash?