Commit ccd866d4 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

corrected problem with endpoint conversion to string

parent feedf532
......@@ -72,8 +72,7 @@ endpoint::operator std::string() const {
hg_return_t ret = margo_addr_to_string(m_engine->m_mid, NULL, &size, m_addr);
MARGO_ASSERT(ret, margo_addr_to_string);
std::string result(size+1,' ');
size += 1;
std::string result(size,' ');
ret = margo_addr_to_string(m_engine->m_mid, &result[0], &size, m_addr);
MARGO_ASSERT(ret, margo_addr_to_string);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment