Spent a couple hours trying to figure out why my code didn't read a binary file format properly. The answer? Structs are aligned, of course! Swapping out sizeof() for the correct size did the trick. There's a lesson here, somewhere, about checking assumptions. I'm going to try and ignore it.
henry