Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ompi/mpi/fortran/base/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int ompi_fortran_string_c2f(const char *cstr, char *fstr, int len)
// trailing \0 into the last position in fstr. This is not what
// Fortran wants; overwrite that \0 with the actual last character
// that will fit into fstr.
if (len < strlen(cstr)) {
if (len <= strlen(cstr)) {
fstr[len - 1] = cstr[len - 1];
} else {
// Otherwise, pad the end of the resulting Fortran string with
Expand Down
Loading