Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Multiply memset size by size of element in umpire.
[simgrid.git] / teshsuite / smpi / isp / umpire / no-error-any_src.c
index 48aa54e..107b0fc 100644 (file)
@@ -34,12 +34,12 @@ main (int argc, char **argv)
   else {
     if (rank == 0) {
       for (i = 1; i < nprocs; i++) {
-       MPI_Recv (buf, buf_size, MPI_INT, 
+       MPI_Recv (buf, buf_size, MPI_INT,
                  MPI_ANY_SOURCE, 0, MPI_COMM_WORLD, &status);
       }
     }
     else {
-      memset (buf, 1, buf_size);
+      memset (buf, 1, buf_size*sizeof(int));
 
       MPI_Send (buf, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD);
     }