diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-11 18:25:07 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-11 18:25:07 -0800 |
commit | 4dd70173bdf0754a039ddf634080e2fbf29d86e7 (patch) | |
tree | 1fdf8089c6bc0b23ed64c6428cafb35f7a39c48e /src | |
parent | ea9fb4a6f3a0eb3c545ac2e329bb44add75c9947 (diff) |
This string is null terminated
Diffstat (limited to 'src')
-rw-r--r-- | src/cpp/common/call.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpp/common/call.cc b/src/cpp/common/call.cc index ffbc599d57..6b1d99f739 100644 --- a/src/cpp/common/call.cc +++ b/src/cpp/common/call.cc @@ -238,7 +238,7 @@ void CallOpBuffer::FinalizeResult(void **tag, bool *status) { FillMetadataMap(&recv_trailing_metadata_arr_, recv_trailing_metadata_); *recv_status_ = Status( static_cast<StatusCode>(status_code_), - status_details_ ? grpc::string(status_details_, status_details_capacity_) + status_details_ ? grpc::string(status_details_) : grpc::string()); } } |