Commit 622923f2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Fix compiler warning: '%1d' directive writing between 1 and 10 bytes into a region of size 2.

parent 79ea8b8d
......@@ -1795,7 +1795,7 @@ void cdfDefRgrid(stream_t *streamptr, int gridID, int gridindex)
lwarn = false;
}
char axisname[7] = "rgridX";
char axisname[16] = "rgridX";
if ( iz == 0 ) axisname[5] = '\0';
else sprintf(&axisname[5], "%1d", iz+1);
......
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