summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-07-05 15:41:37 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-07-05 15:41:37 (GMT)
commit3ce62a78771a24fb93ded6f0580304141bfd28e3 (patch)
treea404c13bd36f42fb815af5696693803b7d20e1ac
parentc80b03cf3310823e6343f24836227e3d91a5fa53 (diff)
downloadhdf5-3ce62a78771a24fb93ded6f0580304141bfd28e3.zip
hdf5-3ce62a78771a24fb93ded6f0580304141bfd28e3.tar.gz
hdf5-3ce62a78771a24fb93ded6f0580304141bfd28e3.tar.bz2
[svn-r11017] Purpose:
bug fix Description: a string buffer did not had space for the trailing null Solution: add one more element to the buffer Platforms tested: linux Misc. update:
-rw-r--r--tools/h5repack/testh5repack_make.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5repack/testh5repack_make.c b/tools/h5repack/testh5repack_make.c
index 48a9a72..608fdd9 100644
--- a/tools/h5repack/testh5repack_make.c
+++ b/tools/h5repack/testh5repack_make.c
@@ -1134,7 +1134,7 @@ int make_layout(hid_t loc_id)
hsize_t chunk_dims[RANK]={CDIM1,CDIM2};
int buf[DIM1][DIM2];
int i, j, n;
- char name[5];
+ char name[6];
for (i=n=0; i<DIM1; i++){