correct a bug in unpacking the string. Needed initialisation before unpacking
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1398 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
2ea4e6d51d
commit
6026fa430e
1 changed files with 1 additions and 0 deletions
|
|
@ -338,6 +338,7 @@ void unpack (std::string & __str)
|
|||
char * buffer;
|
||||
int len;
|
||||
MPI_Unpack (mpi_buf, MPI_BUF_SIZE, & pos_buf, & len, 1, MPI_INT, MPI_COMM_WORLD);
|
||||
buffer = new char[len+1];
|
||||
MPI_Unpack (mpi_buf, MPI_BUF_SIZE, & pos_buf, buffer, len, MPI_CHAR, MPI_COMM_WORLD);
|
||||
__str.assign( buffer );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue