mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix att_name size
There was a mismatch between the allocated size of att_name and the size that H5Aget_name was told the size was.
This commit is contained in:
parent
13fabc4036
commit
c361938c8e
@ -1952,7 +1952,7 @@ write_nc3_strict_att(hid_t hdf_grpid)
|
|||||||
{
|
{
|
||||||
hid_t attid = 0, spaceid = 0;
|
hid_t attid = 0, spaceid = 0;
|
||||||
int one = 1, num, a;
|
int one = 1, num, a;
|
||||||
char att_name[NC_MAX_NAME + 1];
|
char att_name[NC_MAX_HDF5_NAME + 1];
|
||||||
int retval = NC_NOERR;
|
int retval = NC_NOERR;
|
||||||
|
|
||||||
/* If the attribute already exists, call that a success and return
|
/* If the attribute already exists, call that a success and return
|
||||||
|
Loading…
Reference in New Issue
Block a user