Skip to content

Commit da1f273

Browse files
committed
Exclude c_null_char
1 parent 995aced commit da1f273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nf/nf_io_hdf5_submodule.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module function get_h5_attribute_string( &
3939
! Close the file
4040
call h5fclose_f(fid, hdferr)
4141

42-
res = string(:index(string, c_null_char))
42+
res = string(:index(string, c_null_char) - 1)
4343

4444
end function get_h5_attribute_string
4545

0 commit comments

Comments
 (0)