diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-20 20:34:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-20 20:34:16 (GMT) |
commit | 79d1d8258f57f099975c15185b97f0ce1529b902 (patch) | |
tree | f4501ac42e10eb94788857c026125f49a5255bc3 /src | |
parent | b3e4cd6e974e9a9debe24bd248bbe599bfd6c230 (diff) | |
download | hdf5-79d1d8258f57f099975c15185b97f0ce1529b902.zip hdf5-79d1d8258f57f099975c15185b97f0ce1529b902.tar.gz hdf5-79d1d8258f57f099975c15185b97f0ce1529b902.tar.bz2 |
[svn-r2711] Purpose:
Bug fix.
Description:
When the maximum number of elements in a fixed size, free-list managed array
was allocated, the free-list code was writing off the end of the array.
Solution:
Changed definition of free-list managed arrays to allocate correct space for
the array.
Platforms tested:
Solaris 2.5 (baldric) w/Purify
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FLprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h index 0565fb1..af3a98f 100644 --- a/src/H5FLprivate.h +++ b/src/H5FLprivate.h @@ -151,7 +151,7 @@ typedef struct H5FL_arr_head_t { * Macros for defining & using free lists for an array of a type */ /* Declare a free list to manage arrays of type 't' */ -#define H5FL_ARR_DEFINE(t,m) H5FL_arr_head_t t##_arr_free_list={0,0,NULL,0,#t##"_arr",m,sizeof(t),{NULL}} +#define H5FL_ARR_DEFINE(t,m) H5FL_arr_head_t t##_arr_free_list={0,0,NULL,0,#t##"_arr",m+1,sizeof(t),{NULL}} /* Reference a free list for arrays of type 't' defined in another file */ #define H5FL_ARR_EXTERN(t) extern H5FL_arr_head_t t##_arr_free_list |