summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 027cb82..c9a788d 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
{