We have to reset the return value's buffer pointer after growing it.