Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
2f47d931
Commit
2f47d931
authored
Mar 01, 2019
by
Uwe Schulzweida
Browse files
cdf_set_cdi_attr: bug fix for length of string attributes.
parent
b41c0a34
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
2f47d931
2019-03-01 Uwe Schulzweida
* cdf_set_cdi_attr: bug fix for length of string attributes
2019-02-27 Uwe Schulzweida
* GRIB2: added support for inventory key typeOfGeneratingProcess
...
...
src/institution.c
View file @
2f47d931
...
...
@@ -181,8 +181,7 @@ institute_t *instituteNewEntry(cdiResH resH, int center, int subcenter,
int
institutDef
(
int
center
,
int
subcenter
,
const
char
*
name
,
const
char
*
longname
)
{
institute_t
*
instituteptr
=
instituteNewEntry
(
CDI_UNDEFID
,
center
,
subcenter
,
name
,
longname
);
institute_t
*
instituteptr
=
instituteNewEntry
(
CDI_UNDEFID
,
center
,
subcenter
,
name
,
longname
);
return
instituteptr
->
self
;
}
...
...
src/stream_cdf_i.c
View file @
2f47d931
...
...
@@ -888,7 +888,7 @@ void cdf_set_cdi_attr(int ncid, int ncvarid, int attnum, int cdiID, int varID)
{
char
attstring
[
8192
];
cdfGetAttText
(
ncid
,
ncvarid
,
attname
,
sizeof
(
attstring
),
attstring
);
cdiDefAttTxt
(
cdiID
,
varID
,
attname
,
(
int
)
attlen
,
attstring
);
cdiDefAttTxt
(
cdiID
,
varID
,
attname
,
strlen
(
attstring
)
,
attstring
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment