summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_utils.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-04-21 06:55:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-04-21 06:55:42 (GMT)
commit0cf3f85ccec2776e4e6276cbc3b1b72f21536e0b (patch)
tree8e4ad75b45bddd06f1274abc9ceebfa3b1570e28 /tools/lib/h5tools_utils.c
parent31fb2d13de02c9e7139abdb5f346a3f0b9f472e3 (diff)
downloadhdf5-0cf3f85ccec2776e4e6276cbc3b1b72f21536e0b.zip
hdf5-0cf3f85ccec2776e4e6276cbc3b1b72f21536e0b.tar.gz
hdf5-0cf3f85ccec2776e4e6276cbc3b1b72f21536e0b.tar.bz2
[svn-r10637] Purpose:
Bug fix/code cleanup Description: Add tests to determine that very long (64K+) object names are working. Fixed a couple of bugs in h5dump where they weren't... Platforms tested: FreeBSD 4.11 (sleipnir) Solaris 2.9 (shanti)
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r--tools/lib/h5tools_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index e92f972..df103d7 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -435,7 +435,7 @@ find_objs(hid_t group, const char *name, void *op_data)
switch (statbuf.type) {
case H5G_GROUP:
if ((obj = H5Gopen(group, name)) >= 0) {
- if (info->prefix_len < (HDstrlen(info->prefix) + HDstrlen(name) + 2)) {
+ while (info->prefix_len < (HDstrlen(info->prefix) + HDstrlen(name) + 2)) {
info->prefix_len *= 2;
info->prefix = HDrealloc(info->prefix,
info->prefix_len * sizeof(char));