Actually build correctly.
Crappy realloc() implementation.