Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 73a68fe2 authored by Luca Carlon's avatar Luca Carlon Committed by Albert Astals Cid

Pass va_list as such, instead of passing to variadic function

Summary: Logs from krdc appear corrupted for me. This patch should fix values in the logs.

Reviewers: kossebau, uwolfer, #kde_applications, cfeck, aacid

Reviewed By: #kde_applications, aacid

Subscribers: aacid

Differential Revision:
parent 3f31a41c
......@@ -259,16 +259,11 @@ rfbCredential *VncClientThread::credentialHandler(int credentialType)
return cred;
void VncClientThread::outputHandler(const char *format, ...)
void VncClientThread::outputHandler(const char *format, va_list args)
va_list args;
va_start(args, format);
QString message;
message.vsprintf(format, args);
message = message.trimmed();
qCDebug(KRDC) << message;
......@@ -170,7 +170,7 @@ private:
void cuttext(const char *text, int textlen);
char *passwdHandler();
rfbCredential *credentialHandler(int credentialType);
void outputHandler(const char *format, ...);
void outputHandler(const char *format, va_list args);
QImage m_image;
rfbClient *cl;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment