rwrap: Correctly calculate the response size and return it.