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