mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
Incorrect dimension was used; should be NC_MAX_VAR_DIMS
This commit is contained in:
parent
073fa4c759
commit
e430c1e3e1
@ -1293,7 +1293,7 @@ test_ncattdel(path)
|
||||
error("%s: ncinquire in data mode failed", pname);
|
||||
ncclose(cdfid); return ++nerrs;
|
||||
}
|
||||
vtmp.dims = (int *) emalloc(sizeof(int) * MAX_VAR_DIMS);
|
||||
vtmp.dims = (int *) emalloc(sizeof(int) * NC_MAX_VAR_DIMS);
|
||||
vtmp.name = (char *) emalloc(MAX_NC_NAME);
|
||||
if (ncvarinq(cdfid, yav_id, vtmp.name, &vtmp.type, &vtmp.ndims, vtmp.dims,
|
||||
&natts) == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user