This string is null terminated

pull/501/head
Craig Tiller 10 years ago
parent ea9fb4a6f3
commit 4dd70173bd
  1. 2
      src/cpp/common/call.cc

@ -238,7 +238,7 @@ void CallOpBuffer::FinalizeResult(void **tag, bool *status) {
FillMetadataMap(&recv_trailing_metadata_arr_, recv_trailing_metadata_); FillMetadataMap(&recv_trailing_metadata_arr_, recv_trailing_metadata_);
*recv_status_ = Status( *recv_status_ = Status(
static_cast<StatusCode>(status_code_), static_cast<StatusCode>(status_code_),
status_details_ ? grpc::string(status_details_, status_details_capacity_) status_details_ ? grpc::string(status_details_)
: grpc::string()); : grpc::string());
} }
} }

Loading…
Cancel
Save