diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:00:45 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-04-12 02:00:45 (GMT) |
commit | d9703d66de5fe67b1bc3bb1c1017a22d50e369bf (patch) | |
tree | 96bebe64ea727b4ea992e08fd63a54a6d09bae08 /c++/src/H5DxferProp.cpp | |
parent | f466a5d298885c4d3dd813c0e6c8db9319cade50 (diff) | |
download | hdf5-d9703d66de5fe67b1bc3bb1c1017a22d50e369bf.zip hdf5-d9703d66de5fe67b1bc3bb1c1017a22d50e369bf.tar.gz hdf5-d9703d66de5fe67b1bc3bb1c1017a22d50e369bf.tar.bz2 |
[svn-r25021] Description:
Added proper deallocation/allocation to test.
Revised incorrect comments.
(merged from trunk-r24929)
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5DxferProp.cpp')
-rw-r--r-- | c++/src/H5DxferProp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/c++/src/H5DxferProp.cpp b/c++/src/H5DxferProp.cpp index 3379678..1e5c7b8 100644 --- a/c++/src/H5DxferProp.cpp +++ b/c++/src/H5DxferProp.cpp @@ -237,9 +237,8 @@ void DSetMemXferPropList::setDataTransform(const H5std_string& expression) const //-------------------------------------------------------------------------- ssize_t DSetMemXferPropList::getDataTransform(char* exp, size_t buf_size) const { - // If application does not pass in - // H5Pget_data_transform will get buf_size characters of the expression including - // the null terminator + // H5Pget_data_transform will get buf_size characters of the expression + // including the null terminator ssize_t exp_len; exp_len = H5Pget_data_transform(id, exp, buf_size); @@ -254,7 +253,7 @@ ssize_t DSetMemXferPropList::getDataTransform(char* exp, size_t buf_size) const // expression or at [buf_size-1] if the expression is at least the size // of the buffer. - // Return the actual comment length, which might be different from buf_size + // Return the expression length, which might be different from buf_size return(exp_len); } |