Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 7 Apr 2021 09:04:52 +0000 (11:04 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 7 Apr 2021 09:04:52 +0000 (11:04 +0200)
src/smpi/mpi/smpi_comm.cpp

index e082fc6..d07017c 100644 (file)
@@ -178,7 +178,7 @@ void Comm::get_name(char* name, int* len) const
 std::string Comm::name() const
 {
   int size;
-  char name[MPI_MAX_NAME_STRING];
+  char name[MPI_MAX_NAME_STRING+1];
   this->get_name(name, &size);
   if (name[0]=='\0')
     return std::string("MPI_Comm");