summaryrefslogtreecommitdiffstats
path: root/c++/src/H5StrType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2006-12-11 01:23:04 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2006-12-11 01:23:04 (GMT)
commitc0ffce092fb97e2996678d2fd8e45d2b8f560126 (patch)
treee5349c765b866968b4da1ca5a2377ee3899c0643 /c++/src/H5StrType.cpp
parent14e9b46ca21d49e2c3f3b670d4fbf72d7ce14d90 (diff)
downloadhdf5-c0ffce092fb97e2996678d2fd8e45d2b8f560126.zip
hdf5-c0ffce092fb97e2996678d2fd8e45d2b8f560126.tar.gz
hdf5-c0ffce092fb97e2996678d2fd8e45d2b8f560126.tar.bz2
[svn-r13038] Purpose: Fixed user reported bug
Description: In Attribute::read, H5Aread malloc's memory for the read data buffer, so Attribute::read shouldn't allocate the buffer, but needs to deallocate with HDfree. Fixed a typo in H5StrType.cpp, should pass PredType::C_S1 to "copy" instead of H5T_C_S1. Platforms tested: AIX 5.1 (copper) Linux 2.6 (kagiso) SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5StrType.cpp')
-rw-r--r--c++/src/H5StrType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5StrType.cpp b/c++/src/H5StrType.cpp
index 849f345..bbf2bf5 100644
--- a/c++/src/H5StrType.cpp
+++ b/c++/src/H5StrType.cpp
@@ -102,7 +102,7 @@ StrType::StrType( const int dummy, const size_t& size ) : AtomType()
{
// use DataType::copy to make a copy of the string predefined type
// then set its length
- copy(H5T_C_S1);
+ copy(PredType::C_S1);
setSize(size);
}