Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a trailing
\0
to the end of variable format strings.
f2c does not recognize the length of a variable FORMAT string and will try to read the string until a non-blank appears. The format strings are declared as `CHARACTER*8` and do not automatically have a `\0` appended at the end. Therefore, when the string is filled with blanks until the end, it will read one char over the end (which is hopefully a non-blank). This is probably a bug in f2c; however it is not fixed in the recent versions as well. To work around this, a trailing `\0` is automatically added by this patch.
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters