summaryrefslogtreecommitdiffstats
path: root/common/rfb/SConnection.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2012-04-26 09:04:14 +0000
committerPierre Ossman <ossman@cendio.se>2012-04-26 09:04:14 +0000
commitad8609a2ed4e37dfc1a03f529a45bfe685041da5 (patch)
tree2389b74e74b94a6c8b609a3c481b2b1d42360b4f /common/rfb/SConnection.cxx
parent8cb45e5e4cd751cd206a2bbea71e6efafcb23540 (diff)
downloadtigervnc-ad8609a2ed4e37dfc1a03f529a45bfe685041da5.tar.gz
tigervnc-ad8609a2ed4e37dfc1a03f529a45bfe685041da5.zip
Fix unsafe usage of the logging functions.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4905 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r--common/rfb/SConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index 941d30a1..ee573365 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -239,7 +239,7 @@ void SConnection::processInitMsg()
void SConnection::throwConnFailedException(const char* msg)
{
- vlog.info(msg);
+ vlog.info("%s", msg);
if (state_ == RFBSTATE_PROTOCOL_VERSION) {
if (cp.majorVersion == 3 && cp.minorVersion == 3) {
os->writeU32(0);