summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/h52gifgentst.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-28 18:47:15 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2007-03-28 18:47:15 (GMT)
commit0975f08d7ee0366fd0c648a04f32380aa8cd1938 (patch)
tree02098155d848c6e733df33ff7d0bcdac8abafdaa /hl/tools/gif2h5/h52gifgentst.c
parentb9173f64d7b8ecc84dfc4728649adcfee24eb633 (diff)
downloadhdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.zip
hdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.tar.gz
hdf5-0975f08d7ee0366fd0c648a04f32380aa8cd1938.tar.bz2
[svn-r13560]
bug fix a malloc call with an incorrect length caused several memory problems that ultimately corrupted a name passed in a list of arguments in the h52gif tool allocated memory was not freed tested linux
Diffstat (limited to 'hl/tools/gif2h5/h52gifgentst.c')
-rw-r--r--hl/tools/gif2h5/h52gifgentst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/tools/gif2h5/h52gifgentst.c b/hl/tools/gif2h5/h52gifgentst.c
index 717f9aa..e8c49ba 100644
--- a/hl/tools/gif2h5/h52gifgentst.c
+++ b/hl/tools/gif2h5/h52gifgentst.c
@@ -16,7 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "hdf5.h"
-#include "H5IM.h"
+#include "H5IMpublic.h"
@@ -36,7 +36,7 @@
#define WIDTH (hsize_t)400
#define HEIGHT (hsize_t)200
#define PAL_ENTRIES 256
-#define IMAGE1_NAME "1234567"
+#define IMAGE1_NAME "12345678"
#define PAL_NAME "palette"
/*-------------------------------------------------------------------------