X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=filterseqscommand.cpp;h=a12058e4785d00e1c21b84ea453ce82c4f62797d;hb=f663afa231c9bc1b5e18e0ea3bdd2b2ee784f5b2;hp=ffffe4e4224c64f0b6b78d4019f8486b47d8511c;hpb=a537fefa3bd2c2eba7d532249375b6a11b295e25;p=mothur.git diff --git a/filterseqscommand.cpp b/filterseqscommand.cpp index ffffe4e..a12058e 100644 --- a/filterseqscommand.cpp +++ b/filterseqscommand.cpp @@ -310,8 +310,8 @@ int FilterSeqsCommand::filterSequences() { //wait on chidren for(int i = 1; i < processors; i++) { - char buf[4]; - MPI_Recv(buf, 4, MPI_CHAR, i, tag, MPI_COMM_WORLD, &status); + char buf[5]; + MPI_Recv(buf, 5, MPI_CHAR, i, tag, MPI_COMM_WORLD, &status); } }else { //you are a child process @@ -331,11 +331,11 @@ int FilterSeqsCommand::filterSequences() { if (m->control_pressed) { MPI_File_close(&inMPI); MPI_File_close(&outMPI); return 0; } - char buf[4]; + char buf[5]; strcpy(buf, "done"); //tell parent you are done. - MPI_Send(buf, 4, MPI_CHAR, 0, tag, MPI_COMM_WORLD); + MPI_Send(buf, 5, MPI_CHAR, 0, tag, MPI_COMM_WORLD); } MPI_File_close(&outMPI);