summaryrefslogtreecommitdiffstats
path: root/tools/h4toh5image.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-12-22 19:03:00 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-12-22 19:03:00 (GMT)
commit7332a1934e1394770c98ba129d92cf2da467ab88 (patch)
tree1189309dac3bc2c48495e4f318cdfc8fb18efc2b /tools/h4toh5image.c
parentebe4c545e1f4286f7ddd6219bfdcf5d7c23d9364 (diff)
downloadhdf5-7332a1934e1394770c98ba129d92cf2da467ab88.zip
hdf5-7332a1934e1394770c98ba129d92cf2da467ab88.tar.gz
hdf5-7332a1934e1394770c98ba129d92cf2da467ab88.tar.bz2
[svn-r3193]
Purpose: bug fix Description: Zeroing out all memory buffer before it is being used. Solution: using h4toh5ZeroMemory function Platforms tested: linux(eirene), arabica(sun 2.7)
Diffstat (limited to 'tools/h4toh5image.c')
-rw-r--r--tools/h4toh5image.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/h4toh5image.c b/tools/h4toh5image.c
index 0f779a3..f3d41dc 100644
--- a/tools/h4toh5image.c
+++ b/tools/h4toh5image.c
@@ -84,7 +84,13 @@ int Image_h4_to_h5(int32 file_id,int32 ri_id,hid_t h5_group,hid_t h5_palgroup) {
hsize_t h5dims[2];
herr_t ret;
hid_t create_plist;
-
+
+ /* zeroing out memory.*/
+
+ h4toh5_ZeroMemory(image_name,MAX_GR_NAME);
+ h4toh5_ZeroMemory(image_class,MAX_GR_NAME);
+ h4toh5_ZeroMemory(grlabel,MAX_GR_NAME);
+
/* Obtain information of the image.*/
if(GRgetchunkinfo(ri_id,&c_def_out,&c_flags)==FAIL){