summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2007-04-13 22:04:26 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2007-04-13 22:04:26 (GMT)
commit0332285cfff86ebb5624ef949430830e91389cc6 (patch)
tree9886553058bc524b607842cd6de161dac318922a /fortran
parentcc16cc7dea37c66d08532cef3f754913fe76a7c9 (diff)
downloadhdf5-0332285cfff86ebb5624ef949430830e91389cc6.zip
hdf5-0332285cfff86ebb5624ef949430830e91389cc6.tar.gz
hdf5-0332285cfff86ebb5624ef949430830e91389cc6.tar.bz2
[svn-r13660] Minor cleanups and bug fixes.
H5Zpublic.h file didn't include H5public.h; done H5Spublic.h had ghost function H5Sset_space; deleted New source files were added to make.com for VMS. h5gget_comment_c had a small bug in calculating buffer length; fixed Platforms tested: pahra and kagiso; too minor for h5committest
Diffstat (limited to 'fortran')
-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 0b87f4d..ff4d4d0 100644
--- a/fortran/src/H5Gf.c
+++ b/fortran/src/H5Gf.c
@@ -642,7 +642,7 @@ nh5gget_comment_c(hid_t_f *loc_id, _fcd name, int_f *namelen, size_t_f *bufsize,
* Allocate buffer to hold the comment
*/
c_bufsize = (size_t)*bufsize;
- if(c_bufsize) c_comment = (char *)malloc(c_bufsize);
+ if(c_bufsize) c_comment = (char *)malloc(c_bufsize + 1);
if(c_comment == NULL) {
HDfree(c_name);
return ret_value;