mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Corrected an issue reported in https://github.com/Unidata/netcdf-c/issues/317
This commit is contained in:
parent
5132ffa80f
commit
4e46a31088
@ -9,6 +9,7 @@ This file contains a high-level description of this package's evolution. Release
|
||||
|
||||
## 4.4.2 - TBD
|
||||
|
||||
* [Bug] Fixed an issue with `nc_inq_type()` not returning proper value in some circumstances. See [GitHub #317](https://github.com/Unidata/netcdf-c/issues/317) for more information.
|
||||
* [Bug] Corrected an issue related to test failures when `--disable-utilities` or `-DENABLE_UTILITIES=OFF` are specified when building with autotools or cmake, respectively. See [GitHub #313](https://github.com/Unidata/netcdf-c/issues/313) for more information.
|
||||
* [Bug][Enhancement] Corrected a behavioral issue with the `_NCProperties` attribute taking up too much space. See [GitHub #300](https://github.com/Unidata/netcdf-c/issues/300) and [GitHub #301](https://github.com/Unidata/netcdf-c/pull/301) for more information.
|
||||
|
||||
|
@ -1587,7 +1587,7 @@ nc_inq_type(int ncid, nc_type xtype, char *name, size_t *size)
|
||||
if(stat != NC_NOERR) { /* bad ncid; do what we can */
|
||||
/* For compatibility, we need to allow inq about
|
||||
atomic types, even if ncid is ill-defined */
|
||||
if(xtype <= ATOMICTYPEMAX5) {
|
||||
if(xtype <= ATOMICTYPEMAX4) {
|
||||
if(name) strncpy(name,NC_atomictypename(xtype),NC_MAX_NAME);
|
||||
if(size) *size = NC_atomictypelen(xtype);
|
||||
return NC_NOERR;
|
||||
|
Loading…
Reference in New Issue
Block a user