commit | cd5c82a655f74b1395f6216d722d6366edb757f0 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Tue Mar 03 16:48:58 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Tue Mar 03 16:48:58 2015 +0100 |
tree | 9c491dc3dd7ebb88f5c916b68238187f3d23a793 | |
parent | b0a8047bba02b10b687048f7191824e010ec38da [diff] [blame] |
Fix unsafe format strings to the logging functions
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx index b1b9596..36dbcee 100644 --- a/win/winvnc/VNCServerWin32.cxx +++ b/win/winvnc/VNCServerWin32.cxx
@@ -189,10 +189,10 @@ vlog.debug("Server exited cleanly"); } catch (rdr::SystemException &s) { - vlog.error(s.str()); + vlog.error("%s", s.str()); result = s.err; } catch (rdr::Exception &e) { - vlog.error(e.str()); + vlog.error("%s", e.str()); } { Lock l(runLock);