Commit 0ecd2f5b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_cdf::define_all_vars: added txt attributes to vlistDefAttTxt() without...

stream_cdf::define_all_vars: added txt attributes to vlistDefAttTxt() without trailing 0 [Bug #3004]
parent 86b28335
......@@ -2,6 +2,10 @@
* Version 1.5.9 released
2012-11-17 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::define_all_vars: added txt attributes to vlistDefAttTxt() without trailing 0 [Bug #3004]
2012-11-16 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* file.c: added support for unbuffered write
......
......@@ -6122,7 +6122,6 @@ void define_all_vars(int streamID, int vlistID, int instID, int modelID, int *va
else if ( attrtype == NC_CHAR )
{
cdfGetAttText(ncid, ncvarid, attname, attstringlen-1, attstring);
attlen = 1 + strlen(attstring);
vlistDefAttTxt(vlistID, varID, attname, (int)attlen, attstring);
if ( CDI_Debug )
printf("txt: %s.%s = %s\n", ncvars[ncvarid].name, attname, attstring);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment