Fix fallback asprintf implementation for length 0