X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2faee382b22b79244c0c4575cb543b427660432a..134b3ff8dc7cc3ea73a9d456c1ef2e62f73f5e4c:/src/xbt/xbt_host.c diff --git a/src/xbt/xbt_host.c b/src/xbt/xbt_host.c index c66892617b..c2e8e56701 100644 --- a/src/xbt/xbt_host.c +++ b/src/xbt/xbt_host.c @@ -14,9 +14,9 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(host,xbt,"Host management"); /** \brief constructor */ -xbt_host_t xbt_host_new(char *name, int port) { +xbt_host_t xbt_host_new(const char *name, int port) { xbt_host_t res=xbt_new(s_xbt_host_t, 1); - res->name = name; + res->name = xbt_strdup(name); res->port = port; return res; }