summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Fff.F90
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2021-08-31 21:30:30 (GMT)
committerGitHub <noreply@github.com>2021-08-31 21:30:30 (GMT)
commit474adfa3b59146ffbbd655e004d9f896cb7f3020 (patch)
tree52904646dbfe6d2296f7dbf63405163328d0b861 /fortran/src/H5Fff.F90
parent3d5b28f0c467cf1728218e2c6b433cccf79e12c8 (diff)
downloadhdf5-474adfa3b59146ffbbd655e004d9f896cb7f3020.zip
hdf5-474adfa3b59146ffbbd655e004d9f896cb7f3020.tar.gz
hdf5-474adfa3b59146ffbbd655e004d9f896cb7f3020.tar.bz2
Rework of PR #826 (#972) (#980)
* H5Fget_name_f fixed to handle correctly trailing whitespaces and newly allocated buffers. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Scot Breitenfeld <brtnfld@hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'fortran/src/H5Fff.F90')
-rw-r--r--fortran/src/H5Fff.F904
1 files changed, 2 insertions, 2 deletions
diff --git a/fortran/src/H5Fff.F90 b/fortran/src/H5Fff.F90
index 2a76116..3e79d75 100644
--- a/fortran/src/H5Fff.F90
+++ b/fortran/src/H5Fff.F90
@@ -754,7 +754,7 @@ CONTAINS
SUBROUTINE h5fget_name_f(obj_id, buf, size, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: obj_id ! Object identifier
- CHARACTER(LEN=*), INTENT(INOUT) :: buf
+ CHARACTER(LEN=*), INTENT(OUT) :: buf
! Buffer to hold file name
INTEGER(SIZE_T), INTENT(OUT) :: size ! Size of the file name
INTEGER, INTENT(OUT) :: hdferr ! Error code: 0 on success,
@@ -774,7 +774,7 @@ CONTAINS
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(OUT) :: buf
END FUNCTION h5fget_name_c
END INTERFACE
- buflen = LEN_TRIM(buf)
+ buflen = LEN(buf)
hdferr = h5fget_name_c(obj_id, size, buf, buflen)
END SUBROUTINE h5fget_name_f
!****s* H5F/h5fget_filesize_f