Commit 6c5463f0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

import_cmsaf: set max length of date string to 8

parent 9d6db0ef
......@@ -3,6 +3,10 @@
* using CDI library version 1.4.6
* Version 1.4.6 released
2011-01-05 Frank Kaspar <Frank.Kaspar@dwd.de>
* import_cmsaf: set max length of date string to 8 (bug fix)
2011-01-05 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* import_cmsaf: added time information also for time constant fields [request: Frank Kaspar]
......
......@@ -1375,6 +1375,7 @@ int get_vdate(int vlistID)
strcmp(name, "Date_Time") == 0 )
{
vlistInqAttTxt(vlistID, CDI_GLOBAL, name, 256, attstr);
if ( len > 8 ) len = 8;
attstr[len] = 0;
vdate = atoi(attstr);
if ( vdate < 999999 ) vdate = vdate*100 + 1;
......
Supports Markdown
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