diff options
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r-- | c++/src/H5Attribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index ed2e7f3..fe2527b 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -162,7 +162,7 @@ void Attribute::read( const DataType& mem_type, H5std_string& strg ) const void *ptr; if (!is_variable_len) // only allocate for fixed-len string { - strg_C = new char [attr_size+1]; + strg_C = new char [(size_t)attr_size+1]; ptr = strg_C; } else |