#1501: Include string null terminator in HDF5 attributes ----------------------------+----------------------------------------------- Reporter: barry.wardell | Owner: eschnett Type: enhancement | Status: review Priority: major | Milestone: Component: Carpet | Version: development version Resolution: | Keywords: ----------------------------+-----------------------------------------------
Comment (by barry.wardell):
I checked Input.cc and it already avoids duplicated NUL since it constructs a C++ string from a C string and works from then on with the C++ string.
The only place I could find a potential problem (I didn't check the VisIt plugin) was in CarpetIOHDF5/src/util/hdf5_slicer.cc. The updated patch also fixes that file so that it works in the same way as Input.cc