summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-11-16 14:13:55 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-11-16 14:13:55 (GMT)
commit670fb1977b0dbe615cd40b5cb3a3b5b592b85e2c (patch)
tree17399fe4daed8955c96a20f3226c3bab8addd980 /tools/h5dump
parentb06253f5973e09413f8dc3a207d0b479c120e088 (diff)
downloadhdf5-670fb1977b0dbe615cd40b5cb3a3b5b592b85e2c.zip
hdf5-670fb1977b0dbe615cd40b5cb3a3b5b592b85e2c.tar.gz
hdf5-670fb1977b0dbe615cd40b5cb3a3b5b592b85e2c.tar.bz2
[svn-r23038] Corrected last array assignment to use X-1 values for index.
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dumpgentest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index ffa6754..ac74637 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -8547,7 +8547,7 @@ gent_string_scalars(void)
string[i][j] = string[i][j-1] + 1;
}
}
- string[i][j] = 0;
+ string[dims[0]-1][dims[1]-1] = 0;
/* Dataset of string scalar */
dataset = H5Dcreate2(fid, "the_str", tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);