summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2003-06-18 17:14:57 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2003-06-18 17:14:57 (GMT)
commite29d7fc4780c4f26602fa9f67ce52f6b13fd184b (patch)
tree921b80a98e10631e3673268a193a10320edf3785 /fortran/src
parent4a412814c0209b79e4b5490cdedfbcdf440a0e58 (diff)
downloadhdf5-e29d7fc4780c4f26602fa9f67ce52f6b13fd184b.zip
hdf5-e29d7fc4780c4f26602fa9f67ce52f6b13fd184b.tar.gz
hdf5-e29d7fc4780c4f26602fa9f67ce52f6b13fd184b.tar.bz2
[svn-r7050]
Purpose: Bug fix Description: On Windows Fortran szip test failed in debug mode. It turned out that C-stub for H5Pget_filter_by_id didn't calculate the correct value of namelen parameter that is passed to the H5Pget_filter_by_id function. As a result fortran parameter that hold creation property id was overwritten and h5fdcreate_f failed. Solution: Fixed the value of namelen parameter to the H5Pget_filter_by_id function. Platforms tested: Windows 2000 with VF both debu and release modes, sol, verbena. Misc. update:
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/H5Pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fortran/src/H5Pf.c b/fortran/src/H5Pf.c
index 5fe3c67..1ca819b 100644
--- a/fortran/src/H5Pf.c
+++ b/fortran/src/H5Pf.c
@@ -3229,8 +3229,8 @@ nh5pget_filter_by_id_c(hid_t_f *prp_id, int_f* filter_id, int_f* flags, size_t_f
herr_t status;
c_cd_nelmts_in = (size_t)*cd_nelmts;
c_cd_nelmts = (size_t)*cd_nelmts;
- c_namelen = (size_t)*namelen;
- c_name = (char*)malloc(sizeof(char)*c_namelen+1);
+ c_namelen = (size_t)*namelen + 1;
+ c_name = (char*)malloc(sizeof(char)*c_namelen);
if (!c_name) return ret_value;
c_cd_values = (unsigned int*)malloc(sizeof(unsigned int)*((int)c_cd_nelmts_in));