Zachm, your code snippet just killed me. Awesome. I was staring at it trying to find a bug for like 15 minutes, until decided to run it and see.
I ran it and did not get a seg fault... but I guess I was unlucky.

Yeah, I see the error now, but frankly, it was obscured by other mistakes