Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix undefined behaviour in
get_string
`c_f_pointer` does not assign a length to the ponted-to character string `f_ptr`, so that debug builds (with bounds checks) cause a "substring out of bounds" error when accessing `f_ptr` to assign it to `f_string`. `f_ptr` is now an array and `c_f_pointer` gets passed the shape that should be assigned. The array is then read into the `f_string` string in a do-loop.
- Loading branch information