Forgot to realloc'd
Merge pull request #60 from Hamcha/master

Fixes to #59