summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Gf.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-07-16 19:57:03 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-07-16 19:57:03 (GMT)
commitfe309eda4fa2012789b947b2471081725d18e27c (patch)
tree3d6a446ee80558b8258a638edae3720dfb24b005 /fortran/src/H5Gf.c
parent00f62b983a2f2051adfd4dd619c8db9148472347 (diff)
downloadhdf5-fe309eda4fa2012789b947b2471081725d18e27c.zip
hdf5-fe309eda4fa2012789b947b2471081725d18e27c.tar.gz
hdf5-fe309eda4fa2012789b947b2471081725d18e27c.tar.bz2
[svn-r4216]
Purpose: Bug fix (bug#625) Description: Character buffers were not copied and freed properly. That caused segmentation fault on Linux (Debian 2.2, a glibc2.1.3-based distro and gcc 2.95.2 and NAGWare Fortran 95 compiler Release 4.0a(392). Also many compilers screamed about this piece of code. Solution: Asked Quincey to fix the code. Platforms tested: Linux (eirene)
Diffstat (limited to 'fortran/src/H5Gf.c')
-rw-r--r--fortran/src/H5Gf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fortran/src/H5Gf.c b/fortran/src/H5Gf.c
index e86d342..a57b475 100644
--- a/fortran/src/H5Gf.c
+++ b/fortran/src/H5Gf.c
@@ -133,7 +133,7 @@ nh5gget_obj_info_idx_c
*/
c_loc_id = *loc_id;
c_idx = *idx;
- c_ret_value = H5Gget_obj_info_idx(c_loc_id, c_name, c_idx, &c_obj_name, &type);
+ c_ret_value = H5Gget_obj_info_idx(c_loc_id, c_name, c_idx, &c_obj_name, (size_t)*obj_namelen, &type);
if (c_ret_value < 0) {
HDfree(c_obj_name);