aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/CConn.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2012-04-25 15:43:56 +0000
committerPierre Ossman <ossman@cendio.se>2012-04-25 15:43:56 +0000
commitf52740e7eaead1170e20f25c7da79a98da97d6ff (patch)
treefd1cac9b31ea1e1498a1aee33606c18e09d16ee5 /vncviewer/CConn.cxx
parent33bead4a29a67d1d5ba0445647c330fd0bfae5eb (diff)
downloadtigervnc-f52740e7eaead1170e20f25c7da79a98da97d6ff.tar.gz
tigervnc-f52740e7eaead1170e20f25c7da79a98da97d6ff.zip
Make sure we're paranoid about accidentally feeding a format string.
Basic patch by Joachim Falk. Slightly improved before commit. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4900 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r--vncviewer/CConn.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index fbd9a8ed..12ebbe49 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -100,7 +100,7 @@ CConn::CConn(const char* vncServerName)
vlog.info(_("connected to host %s port %d"), serverHost, serverPort);
} catch (rdr::Exception& e) {
vlog.error(e.str());
- fl_alert(e.str());
+ fl_alert("%s", e.str());
exit_vncviewer();
return;
}