diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2001-07-10 17:58:44 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2001-07-10 17:58:44 (GMT) |
commit | 16325d4815dec579ffaf5c1cd99adc8df7a3f099 (patch) | |
tree | 6af7871ff6804c5d8802df4a4da6aa33aa4bbaf6 /hl/tools/gif2h5 | |
parent | cef1b9047133036781cc2737244126aabfe0c99c (diff) | |
download | hdf5-16325d4815dec579ffaf5c1cd99adc8df7a3f099.zip hdf5-16325d4815dec579ffaf5c1cd99adc8df7a3f099.tar.gz hdf5-16325d4815dec579ffaf5c1cd99adc8df7a3f099.tar.bz2 |
[svn-r4170]
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:
Solaris 2.7 (arabica)
Diffstat (limited to 'hl/tools/gif2h5')
-rw-r--r-- | hl/tools/gif2h5/writehdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/tools/gif2h5/writehdf.c b/hl/tools/gif2h5/writehdf.c index 7afccdf..f5c077f 100644 --- a/hl/tools/gif2h5/writehdf.c +++ b/hl/tools/gif2h5/writehdf.c @@ -103,7 +103,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) { |