You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (j=0; (j<LENGTH(STRING_ELT(_buf,i))) & (j< (stsize-1)); j++) {
where the loop stops prematurely because of the j < (stsize-1) condition. The fix is probably quite simple; just make this j < stsize instead, which would cause the entire string to be written.
Incidentally, datasets do the right thing, so I don't see why attributes have this weird behavior.
One would expect my name to fit inside the attribute, but alas:
This seems to be caused by
rhdf5/src/H5A.c
Line 457 in cb102ba
where the loop stops prematurely because of the
j < (stsize-1)
condition. The fix is probably quite simple; just make thisj < stsize
instead, which would cause the entire string to be written.Incidentally, datasets do the right thing, so I don't see why attributes have this weird behavior.
Session information
The text was updated successfully, but these errors were encountered: