summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.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/lib/h5diff.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/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 4ffee2b..53688d9 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -274,7 +274,7 @@ static int is_exclude_path (char * path, h5trav_type_t type, diff_opt_t *options
if (exclude_path_ptr->obj_type == H5TRAV_TYPE_GROUP)
{
ret_cmp = HDstrncmp(exclude_path_ptr->obj_path, path,
- strlen(exclude_path_ptr->obj_path));
+ HDstrlen(exclude_path_ptr->obj_path));
if (ret_cmp == 0)
{
/* check if given path belong to an excluding group, if so
@@ -1180,12 +1180,12 @@ hsize_t diff_match(hid_t file1_id, const char *grp1, trav_info_t *info1,
{
objtype = table->objs[i].type;
/* make full path for obj1 */
- obj1_fullpath = (char*)HDcalloc (strlen(grp1_path) + strlen (table->objs[i].name) + 1, sizeof (char));
+ obj1_fullpath = (char*)HDcalloc (HDstrlen(grp1_path) + strlen (table->objs[i].name) + 1, sizeof (char));
HDstrcpy(obj1_fullpath, grp1_path);
HDstrcat(obj1_fullpath, table->objs[i].name);
/* make full path for obj2 */
- obj2_fullpath = (char*)HDcalloc (strlen(grp2_path) + strlen (table->objs[i].name) + 1, sizeof (char));
+ obj2_fullpath = (char*)HDcalloc (HDstrlen(grp2_path) + strlen (table->objs[i].name) + 1, sizeof (char));
HDstrcpy(obj2_fullpath, grp2_path);
HDstrcat(obj2_fullpath, table->objs[i].name);