diff options
-rw-r--r-- | fortran/src/H5Fff.f90 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fortran/src/H5Fff.f90 b/fortran/src/H5Fff.f90 index 5d76865..43c7c8f 100644 --- a/fortran/src/H5Fff.f90 +++ b/fortran/src/H5Fff.f90 @@ -91,7 +91,8 @@ if (present(creation_prp)) creation_prp_default = creation_prp if (present(access_prp)) access_prp_default = access_prp - namelen = LEN(name) + namelen = LEN_TRIM(name) + hdferr = h5fcreate_c(name, namelen, access_flags, & creation_prp_default, access_prp_default, file_id) |