aboutsummaryrefslogtreecommitdiffstats
path: root/unix
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 /unix
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 'unix')
-rw-r--r--unix/vncconfig/vncconfig.cxx2
-rw-r--r--unix/x0vncserver/x0vncserver.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/vncconfig/vncconfig.cxx b/unix/vncconfig/vncconfig.cxx
index c901d193..f70cc714 100644
--- a/unix/vncconfig/vncconfig.cxx
+++ b/unix/vncconfig/vncconfig.cxx
@@ -431,7 +431,7 @@ int main(int argc, char** argv)
XCloseDisplay(dpy);
} catch (rdr::Exception &e) {
- vlog.error(e.str());
+ vlog.error("%s", e.str());
}
return 0;
diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx
index 64fbe683..b5498e18 100644
--- a/unix/x0vncserver/x0vncserver.cxx
+++ b/unix/x0vncserver/x0vncserver.cxx
@@ -546,7 +546,7 @@ int main(int argc, char** argv)
}
} catch (rdr::Exception &e) {
- vlog.error(e.str());
+ vlog.error("%s", e.str());
return 1;
}