summaryrefslogtreecommitdiffstats
path: root/src/H5G.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 /src/H5G.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 'src/H5G.c')
-rw-r--r--src/H5G.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 257abab..7f0b9ca 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -2469,7 +2469,6 @@ H5G_link (H5G_entry_t *cur_loc, const char *cur_name, H5G_entry_t *new_loc,
const char *rest = NULL; /*last component of new name */
char *norm_cur_name = NULL; /* Pointer to normalized current name */
char *norm_new_name = NULL; /* Pointer to normalized current name */
- char _comp[1024]; /*name component */
size_t nchars; /*characters in component */
size_t offset; /*offset to sym-link value */
herr_t ret_value=SUCCEED; /* Return value */
@@ -2504,15 +2503,7 @@ H5G_link (H5G_entry_t *cur_loc, const char *cur_name, H5G_entry_t *new_loc,
* There should be one component left. Make sure it's null
* terminated and that `rest' points to it.
*/
- if (rest[nchars]) {
- if (nchars+1 > sizeof _comp) {
- HGOTO_ERROR (H5E_SYM, H5E_COMPLEN, FAIL, "name component is too long");
- } else {
- HDmemcpy (_comp, rest, nchars);
- _comp[nchars] = '\0';
- rest = _comp;
- }
- }
+ assert(!rest[nchars]);
/*
* Add the link-value to the local heap for the symbol table which