X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/972496c1b337f99a7009daf0dfae85baf5f0a9ca..76871aa367f5100a2ac974818c477dc46406bc73:/src/mc/mc_smx.cpp diff --git a/src/mc/mc_smx.cpp b/src/mc/mc_smx.cpp index 85039bf283..e3d50c9b18 100644 --- a/src/mc/mc_smx.cpp +++ b/src/mc/mc_smx.cpp @@ -172,7 +172,7 @@ const char* MC_smx_process_get_host_name(smx_process_t p) simgrid::xbt::string_data remote_string = process->read(remote_string_address); char hostname[remote_string.len]; process->read_bytes(hostname, remote_string.len + 1, remote(remote_string.data)); - info->hostname = mc_model_checker->get_host_name(hostname); + info->hostname = mc_model_checker->get_host_name(hostname).c_str(); return info->hostname; }