Skip to content

Fix open error of NetCDF#8

Open
tenomoto wants to merge 2 commits intoj-m-adams:masterfrom
tenomoto:master
Open

Fix open error of NetCDF#8
tenomoto wants to merge 2 commits intoj-m-adams:masterfrom
tenomoto:master

Conversation

@tenomoto
Copy link
Copy Markdown

Calls to utScan() from compare_units() in src/gasdf.c cause errors due to an incorrect truncation.
I experienced errors with udunits2 and segmentation faults with udunits.

For example, the length of "hours since" is 11 and that of temp_str (starting from " since" with a leading white space is 6.
trunc_units should be terminated at the white space between "hours" and "since", which is 5.
Therefore adding 1 add an extra white space to trunc_units.

In addition, I edited configure to remove version string from png and respect CPPFLAGS and LDFLAGS in finding wgrib2.

@j-m-adams
Copy link
Copy Markdown
Owner

Thank you, tenomoto, for your comments. I have just committed some changes for version 2.2.3. Please check if your issues are still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants