diff --git a/src/grib_io.cc b/src/grib_io.cc index 3e7ac6264..da16be6d4 100644 --- a/src/grib_io.cc +++ b/src/grib_io.cc @@ -341,10 +341,8 @@ static int read_GRIB(reader* r) } /* fprintf(stderr,"%s sec1len=%d i=%d\n",type,sec1len,i); */ - GROW_BUF_IF_REQUIRED(sec1len + sec2len + sec3len + 4 + 3); - for (j = 0; j < 3; j++) { if (r->read(r->read_data, &tmp[i], 1, &err) != 1 || err) return err;