X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b0ac1d5d6e14550c3d3abbe50a9105513aa5a263..44814aa98b9528984d327d2678dc3b59e0a3fcee:/src/smpi/mpi/smpi_comm.cpp diff --git a/src/smpi/mpi/smpi_comm.cpp b/src/smpi/mpi/smpi_comm.cpp index 98a41c88b3..58dd774e0f 100644 --- a/src/smpi/mpi/smpi_comm.cpp +++ b/src/smpi/mpi/smpi_comm.cpp @@ -120,7 +120,7 @@ void Comm::get_name (char* name, int* len) return; } if(this == MPI_COMM_WORLD) { - strncpy(name, "WORLD",5); + strncpy(name, "WORLD", 6); *len = 5; } else { *len = snprintf(name, MPI_MAX_NAME_STRING, "%p", this);