summaryrefslogtreecommitdiffstats
path: root/src/H5FP.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FP.c')
-rw-r--r--src/H5FP.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FP.c b/src/H5FP.c
index 16e210b..c246235 100644
--- a/src/H5FP.c
+++ b/src/H5FP.c
@@ -266,7 +266,7 @@ H5FP_read_metadata(char **mdata, int len, int from)
HDmemset(*mdata, 0, (size_t)len + 1);
- if ((mrc = MPI_Recv(*mdata, len, MPI_BYTE, from, H5FP_TAG_METADATA,
+ if ((mrc = MPI_Recv(*mdata, len + 1, MPI_BYTE, from, H5FP_TAG_METADATA,
H5FP_SAP_COMM, &status)) != MPI_SUCCESS) {
HDfree(*mdata);
*mdata = NULL;