diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:17:51 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:17:51 +0100 |
commit | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b (patch) | |
tree | 0bdba695d5126806843d24245ff20b3b16f3a27a /common/rdr/Exception.h | |
parent | 5b3c5f49b103d45ce11cd7c0319c82b95ee61e58 (diff) | |
download | tigervnc-a7bbe9c4a3b2090240173e45bebab86e5cba3b4b.tar.gz tigervnc-a7bbe9c4a3b2090240173e45bebab86e5cba3b4b.zip |
Make sure Exceptions do not use unsafe format strings
Diffstat (limited to 'common/rdr/Exception.h')
-rw-r--r-- | common/rdr/Exception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rdr/Exception.h b/common/rdr/Exception.h index f533dcce..62f452b2 100644 --- a/common/rdr/Exception.h +++ b/common/rdr/Exception.h @@ -43,15 +43,15 @@ namespace rdr { }; struct TimedOut : public Exception { - TimedOut(const char* s="Timed out") : Exception(s) {} + TimedOut(const char* s="Timed out") : Exception("%s", s) {} }; struct EndOfStream : public Exception { - EndOfStream(const char* s="End of stream") : Exception(s) {} + EndOfStream(const char* s="End of stream") : Exception("%s", s) {} }; struct FrameException : public Exception { - FrameException(const char* s="Frame exception") : Exception(s) {} + FrameException(const char* s="Frame exception") : Exception("%s", s) {} }; } |