Made vasprintf with size gathered from vsnprintf.