diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-22 20:39:44 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2014-03-22 20:39:44 (GMT) |
commit | 67be45610fd450909038afea54f79e6a91c458cf (patch) | |
tree | 374bb6c2c7e968e2bf8756c52eb2eb20f0a61612 /c++/test | |
parent | 958a762dd16bac9a1c5a7a2c594adce6758f81f4 (diff) | |
download | hdf5-67be45610fd450909038afea54f79e6a91c458cf.zip hdf5-67be45610fd450909038afea54f79e6a91c458cf.tar.gz hdf5-67be45610fd450909038afea54f79e6a91c458cf.tar.bz2 |
[svn-r24867] Description:
- Added a null terminator to the comment returned from the C call, in
getComment methods
- Some minor cleanup
Platforms tested:
Linux/ppc64 (ostrich)
Linux/32 2.6 (jam)
Linux/64 2.6 (platypus)/PGI compilers
Diffstat (limited to 'c++/test')
-rw-r--r-- | c++/test/dsets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp index b6922c2..72d7977 100644 --- a/c++/test/dsets.cpp +++ b/c++/test/dsets.cpp @@ -1075,7 +1075,7 @@ void test_dset() // Get part of the comment, random length using // ssize_t getComment(const char* name, const size_t buf_size, char* comment) char* comment = new char[11]; - ssize_t comment_len = file.getComment("emit diagnostics", 10, comment); + ssize_t comment_len = file.getComment("emit diagnostics", 11, comment); verify_val((const char*)comment, "Causes dia", "H5Location::getComment", __LINE__, __FILE__); // Close group "emit diagnostics". |