diff --git a/test/h5test.c b/test/h5test.c index 027cb82109..c9a788d0e4 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -915,7 +915,7 @@ char* getenv_all(MPI_Comm comm, int root, const char* name) env = (char*) HDrealloc(env, len+1); MPI_Bcast(env, len, MPI_CHAR, root, comm); - env[len+1] = '\0'; + env[len] = '\0'; } else {