summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-07-10 18:05:11 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-07-10 18:05:11 (GMT)
commita46f951ea0f9fa3be5b7d61d2b1f7116e28ced9d (patch)
tree8074ea1bb91c21bb240fe55bb90a2374386d5e9a /hl
parentb6e3eab0857166408ed411b2f7b0db31774647f5 (diff)
downloadhdf5-a46f951ea0f9fa3be5b7d61d2b1f7116e28ced9d.zip
hdf5-a46f951ea0f9fa3be5b7d61d2b1f7116e28ced9d.tar.gz
hdf5-a46f951ea0f9fa3be5b7d61d2b1f7116e28ced9d.tar.bz2
[svn-r4171]
Purpose: Bug fix (by Bob McGrath) Description: On Solaris platforms palette was not written to the HDF5 file Solution: '\0' character was written outside the GroupName array. Apparently on Solaris it destroyed the condition value that determined if the palette should be written to the file. Platforms tested: Not tested yet.
Diffstat (limited to 'hl')
-rw-r--r--hl/tools/gif2h5/writehdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/tools/gif2h5/writehdf.c b/hl/tools/gif2h5/writehdf.c
index 5426c27..313b57e 100644
--- a/hl/tools/gif2h5/writehdf.c
+++ b/hl/tools/gif2h5/writehdf.c
@@ -95,7 +95,7 @@ char *GIFFileName;
fprintf(stderr , "strncpy failed\n");
exit(1);
}
- GroupName[VSNAMELENMAX] = '\0';
+ GroupName[VSNAMELENMAX - 1] = '\0';
if ((file_id = H5Fcreate(HDFName , H5F_ACC_TRUNC , H5P_DEFAULT , H5P_DEFAULT)) < 0) {