Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
4fa1c0f4
Commit
4fa1c0f4
authored
Oct 05, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4fa1c0f4
...
...
@@ -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)
...
...
src/Maggraph.cc
View file @
4fa1c0f4
...
...
@@ -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( ); */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment