Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f0cf1a5c
Commit
f0cf1a5c
authored
May 17, 2019
by
Uwe Schulzweida
Browse files
vlistInqVarLongname: return CDI_MAX_NAME chars (bug fix).
parent
59efbbdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
f0cf1a5c
...
...
@@ -3,6 +3,10 @@
* using CGRIBEX library version 1.9.3
* Version 1.9.7 released
2019-05-17 Uwe Schulzweida
* vlistInqVarLongname: return CDI_MAX_NAME chars (bug fix)
2019-04-26 Uwe Schulzweida
* netCDF4: dimids are greater than ndims after ncrename (bug fix)
...
...
src/vlist_var.c
View file @
f0cf1a5c
...
...
@@ -579,7 +579,11 @@ void vlistInqVarLongname(int vlistID, int varID, char *longname)
}
}
else
strcpy
(
longname
,
vlistptr
->
vars
[
varID
].
longname
);
{
// strcpy(longname, vlistptr->vars[varID].longname);
strncpy
(
longname
,
vlistptr
->
vars
[
varID
].
longname
,
CDI_MAX_NAME
);
longname
[
CDI_MAX_NAME
-
1
]
=
0
;
}
return
;
}
...
...
@@ -716,7 +720,7 @@ The function @func{vlistInqVarDatatype} returns the data type of a variable.
@Result
@func{vlistInqVarDatatype} returns an identifier to the data type of the variable.
The valid CDI data types are @func{CDI_DATATYPE_PACK8}, @func{CDI_DATATYPE_PACK16}, @func{CDI_DATATYPE_PACK24},
@func{CDI_DATATYPE_FLT32}, @func{CDI_DATATYPE_FLT64}, @func{CDI_DATATYPE_INT8}, @func{CDI_DATATYPE_INT16} and
@func{CDI_DATATYPE_FLT32}, @func{CDI_DATATYPE_FLT64}, @func{CDI_DATATYPE_INT8}, @func{CDI_DATATYPE_INT16} and
@func{CDI_DATATYPE_INT32}.
@EndFunction
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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