summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Af.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2008-05-16 15:10:36 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2008-05-16 15:10:36 (GMT)
commit968552fbc80f4d88a6ea54b0b9a20892f461e167 (patch)
tree2e65d94f5026bdbf5fba48200f6ce3c5e1c0684d /fortran/src/H5Af.c
parentc23c6b939229efde53e105008d29b8bf441f5d99 (diff)
downloadhdf5-968552fbc80f4d88a6ea54b0b9a20892f461e167.zip
hdf5-968552fbc80f4d88a6ea54b0b9a20892f461e167.tar.gz
hdf5-968552fbc80f4d88a6ea54b0b9a20892f461e167.tar.bz2
[svn-r15018] Maintenance: Brought changes from th etrunk to 1.8 branch.
Platforms tested: kagiso with g95, Intel and PGI compilers and with -i8 flag smirom with g95 and -i8 flag, duty with gfortran42
Diffstat (limited to 'fortran/src/H5Af.c')
-rw-r--r--fortran/src/H5Af.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fortran/src/H5Af.c b/fortran/src/H5Af.c
index 4eab9c9..271cc87 100644
--- a/fortran/src/H5Af.c
+++ b/fortran/src/H5Af.c
@@ -1285,21 +1285,17 @@ nh5aget_name_by_idx_c (hid_t_f *loc_id, _fcd obj_name, size_t_f *obj_namelen,
c_buf_size = (size_t)*size + 1;
c_buf = (char *)HDmalloc(c_buf_size);
if (c_buf == NULL) return ret_value;
-
/*
* Call H5Aget_name_by_idx function.
*/
c_size = H5Aget_name_by_idx((hid_t)*loc_id, c_obj_name, c_idx_type, c_order, (hsize_t)*n, c_buf, c_buf_size,(hid_t)*lapl_id);
-
-/* printf( "In C routine, The attr name is %s %i \n ", c_buf, c_buf_size ); */
-/* printf( "In C routine, The c_size is %i \n ", c_size ); */
if (c_size < 0) goto done;
/*
* Convert C name to FORTRAN and place it in the given buffer
*/
- HD5packFstring(c_buf, _fcdtocp(name), c_buf_size);
+ HD5packFstring(c_buf, _fcdtocp(name), c_buf_size-1);
*size = (size_t_f)c_size;
ret_value = 0;