Blame SOURCES/opencryptoki-3.0-format.patch

50440f
From 02d46e95acfca2ac3ca85a3f1c3d271a04e29206 Mon Sep 17 00:00:00 2001
50440f
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
50440f
Date: Tue, 3 Dec 2013 14:44:36 +0100
50440f
Subject: [PATCH] fix build with -Werror=format-security
50440f
MIME-Version: 1.0
50440f
Content-Type: text/plain; charset=UTF-8
50440f
Content-Transfer-Encoding: 8bit
50440f
50440f
50440f
Signed-off-by: Dan HorĂ¡k <dan@danny.cz>
50440f
---
50440f
 usr/sbin/pkcsslotd/log.c | 2 +-
50440f
 1 file changed, 1 insertion(+), 1 deletion(-)
50440f
50440f
diff --git a/usr/sbin/pkcsslotd/log.c b/usr/sbin/pkcsslotd/log.c
50440f
index 949d95d..a2292ac 100755
50440f
--- a/usr/sbin/pkcsslotd/log.c
50440f
+++ b/usr/sbin/pkcsslotd/log.c
50440f
@@ -823,7 +823,7 @@ BOOL PKCS_Log ( pLogHandle phLog, char *Format, va_list ap ) {
50440f
 
50440f
   /* Always log to syslog, if we're using it */
50440f
   if ( pInfo->UseSyslog ) {
50440f
-    syslog(pInfo->LogLevel,  Buffer);
50440f
+    syslog(pInfo->LogLevel,  "%s", Buffer);
50440f
   }
50440f
 
50440f
   return TRUE;
50440f
-- 
50440f
1.8.1.4
50440f