diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-07-21 16:10:03 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-21 16:10:03 +0200 |
commit | c92081e116509bab734040f4ccdb9586da7f5c60 (patch) | |
tree | ceff45451a89d457bff44768ecf7062bbb29dc2d /common/rdr/Exception.cxx | |
parent | 51f9a3aafc2008c23cdcbcabf7f271df05d83375 (diff) | |
download | tigervnc-c92081e116509bab734040f4ccdb9586da7f5c60.tar.gz tigervnc-c92081e116509bab734040f4ccdb9586da7f5c60.zip |
Use printf constructor safely
The input string might contain formatting marks, so make sure those
are ignored.
Diffstat (limited to 'common/rdr/Exception.cxx')
-rw-r--r-- | common/rdr/Exception.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rdr/Exception.cxx b/common/rdr/Exception.cxx index d70cd9fc..964bc333 100644 --- a/common/rdr/Exception.cxx +++ b/common/rdr/Exception.cxx @@ -50,7 +50,7 @@ Exception::Exception(const char *format, ...) { } SystemException::SystemException(const char* s, int err_) - : Exception(s), err(err_) + : Exception("%s", s), err(err_) { strncat(str_, ": ", len-1-strlen(str_)); #ifdef _WIN32 |