Commit 4fa1c0f4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

maggraph: stack smashing with more than 1 input file (bug fix)

parent 6b24d88f
Pipeline #4493 passed with stages
in 16 minutes and 25 seconds
......@@ -3,6 +3,10 @@
* Using CDI library version 1.9.9
* Version 1.9.9 release
2020-10-05 Uwe Schulzweida
* maggraph: stack smashing with more than 1 input file (bug fix)
2020-09-29 Uwe Schulzweida
* pass option --no_warnings to option -w (bug fix)
......
......@@ -110,8 +110,8 @@ static int
compareDate(int64_t date1, int64_t date2)
{
int c1[3], c2[3];
cdiDecodeDate(date1, c1 + 1, c1 + 2, c1 + 3);
cdiDecodeDate(date2, c2 + 1, c2 + 2, c2 + 3);
cdiDecodeDate(date1, c1, c1 + 1, c1 + 2);
cdiDecodeDate(date2, c2, c2 + 1, c2 + 2);
for (int i = 0; i < 3; i++)
{
......@@ -131,8 +131,8 @@ static int
compareTime(int time1, int time2)
{
int c1[3], c2[3];
cdiDecodeTime(time1, c1 + 1, c1 + 2, c1 + 3);
cdiDecodeTime(time2, c2 + 1, c2 + 2, c2 + 3);
cdiDecodeTime(time1, c1, c1 + 1, c1 + 2);
cdiDecodeTime(time2, c2, c2 + 1, c2 + 2);
for (int i = 0; i < 3; i++)
{
......@@ -926,6 +926,7 @@ Maggraph(void *process)
for (int i = 0; i < nparam; i++) fprintf(stderr, "Param %s\n", pnames[i].c_str());
}
maggraph(ofilename, varname, units, nfiles, nts, vdates, vtimes, datatab, nparam, pnames);
/* quit_XMLtemplate_parser( ); */
......
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