Imported the modifications made to offsets.c in branch issue323.dmh.
Imported the modifications made to offsets.c in branch issue323.dmh.

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c