NOAA-EMC / NCEPLIBS-grib_util

This is a collection of NCEP GRIB related utilities.
Other
22 stars 11 forks source link

degrib2 calls prvtime() with final parameter of length 90, but prvtime() expects length 100 #159

Closed edwardhartnett closed 1 year ago

edwardhartnett commented 2 years ago

In degrib2.F90 we have:

  character(len = 90) :: tabbrev

        call prvtime(gfld%ipdtnum, gfld%ipdtmpl, listsec1, tabbrev)

in prvtime() the final parameter is set like this:

tabbrev(1:100) = " " So it is writing past the end of the char array passed in to prvtime.

Similarly the final argument to prlevel() is also 10 short of the length it is supposed to be.