diff --git a/src/connecting.cc b/src/connecting.cc index f27ce50..46468a6 100644 --- a/src/connecting.cc +++ b/src/connecting.cc @@ -116,7 +116,7 @@ void Connecting::DoWithError() const { } char errno_info[512]; auto tmp_ptr = ::strerror_r(saved_errno, errno_info, sizeof(errno_info)); - LOG_ERROR("Fd(%d) gets an error -- %s!!!", Fd(), tmp_ptr); + LOG_ERROR("Fd(%d) gets an error -- %s!!!", Fd(), errno_info); } void Connecting::OnEstablishing() {