summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-02-24 14:27:57 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-02-24 14:27:57 (GMT)
commit944f2cdf8d7f3d665ac9e72fe2267826e8abb047 (patch)
tree174208cdb4d09a569f111fee490eee8009dbb93a /tools/h5dump/h5dumpgentest.c
parentb2ec30bfe350f37fcd69d97f8a7cdd7367d06b6a (diff)
downloadhdf5-944f2cdf8d7f3d665ac9e72fe2267826e8abb047.zip
hdf5-944f2cdf8d7f3d665ac9e72fe2267826e8abb047.tar.gz
hdf5-944f2cdf8d7f3d665ac9e72fe2267826e8abb047.tar.bz2
[svn-r21979] Correct HD prefix in tools for strlen and memcpy
Checked for HD support.
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index f87f93a..5b97434 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -3528,7 +3528,7 @@ void gent_split_file(void)
root = H5Gopen2(fid, "/", H5P_DEFAULT);
atype = H5Tcopy(H5T_C_S1);
- H5Tset_size(atype, strlen(meta) + 1);
+ H5Tset_size(atype, HDstrlen(meta) + 1);
H5Tset_strpad(atype, H5T_STR_NULLTERM);
dims[0] = 1;
@@ -3729,7 +3729,7 @@ static void gent_char(void)
hid_t sid1; /* Dataspace ID */
hsize_t dims1[1];
- dims1[0] = strlen(wdata);
+ dims1[0] = HDstrlen(wdata);
/* Create file */
fid1 = H5Fcreate(FILE39, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);