X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4ff4ac495bca3ade2ccf66c8eb93973b50e88adf..42409cb20c956bea7e678f4db5f17d27ee2bc422:/examples/msg/icomms/peer3.c diff --git a/examples/msg/icomms/peer3.c b/examples/msg/icomms/peer3.c index 22072b4ae8..a0fe6c6196 100644 --- a/examples/msg/icomms/peer3.c +++ b/examples/msg/icomms/peer3.c @@ -90,7 +90,7 @@ int receiver(int argc, char *argv[]) int i; char mailbox[80]; xbt_dynar_t comms = xbt_dynar_new(sizeof(msg_comm_t), NULL); - int tasks = atof(argv[2]); + int tasks = xbt_str_parse_int(argv[2], "Invalid amount of tasks: %s"); msg_task_t *task = xbt_new(msg_task_t, tasks); XBT_ATTRIB_UNUSED int read;