X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c40ccdf3f0f6a87fe049538c0a593e5f8862b5d8..6b28daccf7142bd4b00e9eee1cd63daa90ae4ad9:/examples/gras/p2p/chord/chord.c diff --git a/examples/gras/p2p/chord/chord.c b/examples/gras/p2p/chord/chord.c index debf98fbbe..f70b5ce928 100644 --- a/examples/gras/p2p/chord/chord.c +++ b/examples/gras/p2p/chord/chord.c @@ -312,7 +312,7 @@ int node(int argc, char **argv) if (argc == 3) { create = 1; } else { - asprintf(&other_host, "%s", argv[3]); + other_host = xbt_strdup(argv[3]); other_port = atoi(argv[4]); }