summaryrefslogtreecommitdiffstats
path: root/recipes-tpm/libtpm/files/fix_dprintf_issue.patch
blob: 25760bbeaa699ca3c8e57adb45d9afcfa33ee5e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Upstream-Status: Pending
Signed-off-by: Armin Kuster <akuster808@gmail.com>

Index: src/tpm_library.c
===================================================================
--- git.orig/src/tpm_library.c
+++ git/src/tpm_library.c
@@ -405,8 +405,8 @@ int TPMLIB_LogPrintf(const char *format,
     }
 
     if (debug_prefix)
-        dprintf(debug_fd, debug_prefix);
-    dprintf(debug_fd, buffer);
+        dprintf(debug_fd, "%s" , debug_prefix);
+    dprintf(debug_fd, "%s" , buffer);
 
     return i;
 }