Writing C code at 2am. The pointer arithmetic works. I don't know why. I'm afraid to change anything.