1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
ParMGridGen/IMParMetis-2.0/ParMETISLib/util.c | 4 ++--
ParMGridGen/ParLib/util.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ParMGridGen/IMParMetis-2.0/ParMETISLib/util.c b/ParMGridGen/IMParMetis-2.0/ParMETISLib/util.c
index d0dfc91..941f68e 100644
--- a/ParMGridGen/IMParMetis-2.0/ParMETISLib/util.c
+++ b/ParMGridGen/IMParMetis-2.0/ParMETISLib/util.c
@@ -25,7 +25,7 @@ void errexit(char *f_str,...)
sprintf(out2, "Error! %s", out1);
- fprintf(stdout, out2);
+ fprintf(stdout, "%s", out2);
fflush(stdout);
abort();
@@ -46,7 +46,7 @@ void myprintf(CtrlType *ctrl, char *f_str,...)
sprintf(out2, "[%2d] %s", ctrl->mype, out1);
- fprintf(stdout, out2);
+ fprintf(stdout, "%s", out2);
fflush(stdout);
}
diff --git a/ParMGridGen/ParLib/util.c b/ParMGridGen/ParLib/util.c
index 9b8290d..c212b60 100644
--- a/ParMGridGen/ParLib/util.c
+++ b/ParMGridGen/ParLib/util.c
@@ -25,7 +25,7 @@ void MGriderrexit(char *f_str,...)
sprintf(out2, "Error! %s", out1);
- fprintf(stdout, out2);
+ fprintf(stdout, "%s", out2);
fflush(stdout);
abort();
@@ -46,7 +46,7 @@ void MGridmyprintf(MGridCtrlType *ctrl, char *f_str,...)
sprintf(out2, "[%2d] %s", ctrl->mype, out1);
- fprintf(stdout, out2);
+ fprintf(stdout, "%s", out2);
fflush(stdout);
}
|