Realloc fail on union

But don't you need to keep shortString.data intact so you can copy it into the long buffer?