[qca-pkcs11] Add patch that fixes compile error.

Juha Tuomala tuju at fedoraproject.org
Tue Jul 5 16:56:22 UTC 2011


commit b3a20fafe5fee68f384f7b0605b1b2d34838ceb8
Author: Juha Tuomala <tuju at iki.fi>
Date:   Tue Jul 5 19:55:54 2011 +0300

    Add patch that fixes compile error.

 qca-pkcs11.cpp.vsnprintf.patch |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/qca-pkcs11.cpp.vsnprintf.patch b/qca-pkcs11.cpp.vsnprintf.patch
new file mode 100644
index 0000000..1e3ef2e
--- /dev/null
+++ b/qca-pkcs11.cpp.vsnprintf.patch
@@ -0,0 +1,18 @@
+--- qca-pkcs11.cpp.orig	2010-01-28 14:33:41.000000000 +0200
++++ qca-pkcs11.cpp	2010-01-28 14:34:00.000000000 +0200
+@@ -3036,14 +3036,7 @@
+ 	}
+ 
+ 
+-//@BEGIN-WORKAROUND
+-// Qt vsprintf cannot can NULL for %s as vsprintf does.
+-//	QCA_logTextMessage (QString ().vsprintf (format, args), severity);
+-	char buffer[2048];
+-	QT_VSNPRINTF (buffer, sizeof (buffer)-1, format, args);
+-	buffer[sizeof (buffer)-1] = '\x0';
+-	QCA_logTextMessage (buffer, severity);
+-//@END-WORKAROUND
++	QCA_logTextMessage (QString ().vsprintf (format, args), severity);
+ }
+ 
+ void


More information about the scm-commits mailing list