I still can't get what's causing this segfault.

The reading part isn't working, and I can't nail down what's causing it.