summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/expect/expect/0001-Resolve-string-formatting-issues.patch
blob: af1d8c626c2a5285892ebae157f4dbc072c04f7a (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
From 107cc370705d8520ba42f1416d89ed3544277c83 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Thu, 23 Mar 2017 13:44:41 +0200
Subject: [PATCH] Resolve string formatting issues.

Upstream-Status: Inappropriate [upstream seems dead]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 exp_clib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exp_clib.c b/exp_clib.c
index 172c05e..809200e 100644
--- a/exp_clib.c
+++ b/exp_clib.c
@@ -1476,8 +1476,8 @@ expDiagLogU(str)
      char *str;
 {
   if (exp_is_debugging) {
-    fprintf(stderr,str);
-    if (exp_logfile) fprintf(exp_logfile,str);
+    fprintf(stderr, "%s", str);
+    if (exp_logfile) fprintf(exp_logfile, "%s", str);
   }
 }
 
-- 
2.11.0