vsnprintf->QT_VSNPRINTF for platform compatability

svn path=/trunk/kdesupport/qca/; revision=658568
This commit is contained in:
Alon Bar-Lev 2007-04-27 19:07:54 +00:00
parent 67e80c6054
commit 31157b0de0

View File

@ -19,6 +19,7 @@
*/
#include <QtCrypto>
#include <qplatformdefs.h>
#include <QHash>
#include <QMutexLocker>
@ -2860,7 +2861,7 @@ pkcs11Provider::logHook (
// Qt vsprintf cannot can NULL for %s as vsprintf does.
// QCA_logTextMessage (QString ().vsprintf (format, args), severity);
char buffer[2048];
vsnprintf (buffer, sizeof (buffer)-1, format, args);
QT_VSNPRINTF (buffer, sizeof (buffer)-1, format, args);
buffer[sizeof (buffer)-1] = '\x0';
QCA_logTextMessage (buffer, severity);
//@END-WORKAROUND