X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15badc71ce964f6dae6428c9a4c0198fad5d4936..f2df13795e01302813a6aef10825ec7e922ce530:/src/simix/smx_deployment.c diff --git a/src/simix/smx_deployment.c b/src/simix/smx_deployment.c index 72072a3e40..d1fcee1a94 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) { @@ -80,7 +80,7 @@ static void parse_process(sg_platf_process_cbarg_t process) process->argc, (char**)(process->argv), current_property_set, - auto_restart); + auto_restart, NULL); else simcall_process_create(&process_created, (char*)(process->argv)[0], parse_code, NULL, sg_host_name(host), kill_time, process->argc, (char**)process->argv, current_property_set,auto_restart);