summarylogtreecommitdiffstats
path: root/ibutils-1.5.7-format-security.patch
blob: 229dd6278c865293fc2dc505d4139b428c6279d9 (plain)
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
diff --git a/ibis/src/ibis.i b/ibis/src/ibis.i
index 8fc4440..0b596bf 100644
--- a/ibis/src/ibis.i
+++ b/ibis/src/ibis.i
@@ -362,7 +362,7 @@ ibisp_is_debug(void)
   }
 
   int ibis_puts( osm_log_level_t verbosity, char *msg) {
-	 osm_log(&(IbisObj.log), verbosity, msg );
+	 osm_log(&(IbisObj.log), verbosity, "%s", msg );
 	 return TCL_OK;
   }
 
diff --git a/ibis/src/ibis_wrap.c b/ibis/src/ibis_wrap.c
index 5098c2a..93154ba 100644
--- a/ibis/src/ibis_wrap.c
+++ b/ibis/src/ibis_wrap.c
@@ -3186,7 +3186,7 @@ typedef struct {
   }
 
   int ibis_puts( osm_log_level_t verbosity, char *msg) {
-	 osm_log(&(IbisObj.log), verbosity, msg );
+	 osm_log(&(IbisObj.log), verbosity, "%s", msg );
 	 return TCL_OK;
   }
 
diff --git a/ibis/src/ibissh_wrap.cpp b/ibis/src/ibissh_wrap.cpp
index f75cde6..d312915 100644
--- a/ibis/src/ibissh_wrap.cpp
+++ b/ibis/src/ibissh_wrap.cpp
@@ -3186,7 +3186,7 @@ typedef struct {
   }
 
   int ibis_puts( osm_log_level_t verbosity, char *msg) {
-	 osm_log(&(IbisObj.log), verbosity, msg );
+	 osm_log(&(IbisObj.log), verbosity, "%s", msg );
 	 return TCL_OK;
   }