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.
Calls to
utScan()
fromcompare_units()
insrc/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 oftemp_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 totrunc_units
.In addition, I edited
configure
to remove version string from png and respectCPPFLAGS
andLDFLAGS
in finding wgrib2.