X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15badc71ce964f6dae6428c9a4c0198fad5d4936..39714a9316cb8b1b86982600d4b1c8e034c82e7f:/src/simix/smx_deployment.c diff --git a/src/simix/smx_deployment.c b/src/simix/smx_deployment.c index 72072a3e40..894de3c2dd 100644 --- a/src/simix/smx_deployment.c +++ b/src/simix/smx_deployment.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2007, 2009-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -45,7 +45,7 @@ static void parse_process(sg_platf_process_cbarg_t process) int i; for (i=0; iargc; i++) arg->argv[i] = xbt_strdup(process->argv[i]); - arg->name = (char*)(arg->argv)[0]; + arg->name = xbt_strdup(arg->argv[0]); arg->kill_time = kill_time; arg->properties = current_property_set; if (!SIMIX_host_priv(host)->boot_processes) {