Commit 05476d30 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Fix g++ error: initializer-string for array of chars is too long.

parent e41775eb
......@@ -1416,7 +1416,7 @@ void cdfDefZaxisChar(stream_t *streamptr, int zaxisID, char *axisname, int *dimI
if ( streamptr->ncmode == 2 ) cdf_redef(fileID);
/* Check StrlenID */
char strlen[7] = "strlen\0";
char strlen[8] = "strlen\0";
size_t clen = (size_t) zaxisInqCLen(zaxisID);
if ( clen == 0 )
Error("Maximal string length value is 0.\nA given character axis requires a dimension to save the maximal string length.");
......
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