fix bug with string passing

This commit is contained in:
Axel Kohlmeyer
2020-10-09 01:42:48 -04:00
parent 6d67fa004c
commit bfcb78d5d7

View File

@ -1252,7 +1252,7 @@ std::string Info::get_mpi_info(int &major, int &minor)
MPI_Get_library_version(version,&len);
#else
static char version[32];
strcpy(version,get_mpi_vendor());
strcpy(version,get_mpi_vendor().c_str());
len = strlen(version);
#endif