diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-02-24 20:30:07 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-02-24 20:30:07 (GMT) |
commit | 48d9c30923a5d298670cf1f8e930c9a9624f80b9 (patch) | |
tree | 955523c057398e37ce88af52fe58c762b14979ea /hl/src | |
parent | e171ee01f180cbd326efbdf3254cee94bc4d9622 (diff) | |
download | hdf5-48d9c30923a5d298670cf1f8e930c9a9624f80b9.zip hdf5-48d9c30923a5d298670cf1f8e930c9a9624f80b9.tar.gz hdf5-48d9c30923a5d298670cf1f8e930c9a9624f80b9.tar.bz2 |
[svn-r26294] Fix for HDFFV-9132.
tested: h5committest
Diffstat (limited to 'hl/src')
-rw-r--r-- | hl/src/H5LT.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c index ed725a3..9d6123b 100644 --- a/hl/src/H5LT.c +++ b/hl/src/H5LT.c @@ -1981,7 +1981,8 @@ find_attr(hid_t loc_id, const char *name, const H5A_info_t *ainfo, * cause the iterator to immediately return that positive value, * indicating short-circuit success */ - if(HDstrncmp(name, (char *)op_data, HDstrlen((char *)op_data)) == 0) + + if(HDstrncmp(name, (char *)op_data, MAX(HDstrlen((char *)op_data),HDstrlen(name))) == 0) ret = H5_ITER_STOP; return ret; |