Only check if snprintf returns required space if there's no asprintf.