X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6b23c846948f7f89277f75e7c42f3942b31b8d3..7dbf5c66d75338dce60fd2242be656eaa7e4d2da:/src/bindings/java/jmsg_host.c diff --git a/src/bindings/java/jmsg_host.c b/src/bindings/java/jmsg_host.c index 0d4469c572..d0ac0be1d0 100644 --- a/src/bindings/java/jmsg_host.c +++ b/src/bindings/java/jmsg_host.c @@ -7,7 +7,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "xbt/str.h" -#include "msg/msg.h" +#include "simgrid/msg.h" #include "jmsg.h" #include "jmsg_host.h" #include "jxbt_utilities.h" @@ -245,7 +245,7 @@ Java_org_simgrid_msg_Host_setProperty(JNIEnv *env, jobject jhost, jobject jname, } const char *name = (*env)->GetStringUTFChars(env, jname, 0); const char *value_java = (*env)->GetStringUTFChars(env, jvalue, 0); - char *value = strdup(value_java); + char *value = xbt_strdup(value_java); MSG_host_set_property_value(host, name, value, xbt_free_f);