]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/mc_smx.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Better documentation of AddressSpace
[simgrid.git] / src / mc / mc_smx.cpp
index 85039bf2831d15539d3ff912f16f9161682053af..e3d50c9b18134d89d13e909f3a283f2fc7da1595 100644 (file)
@@ -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;
 }