commit | c92081e116509bab734040f4ccdb9586da7f5c60 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Mon Jul 21 16:10:03 2014 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Mon Jul 21 16:10:03 2014 +0200 |
tree | ceff45451a89d457bff44768ecf7062bbb29dc2d | |
parent | 51f9a3aafc2008c23cdcbcabf7f271df05d83375 [diff] [blame] |
Use printf constructor safely The input string might contain formatting marks, so make sure those are ignored.
diff --git a/common/rdr/Exception.cxx b/common/rdr/Exception.cxx index d70cd9f..964bc33 100644 --- a/common/rdr/Exception.cxx +++ b/common/rdr/Exception.cxx
@@ -50,7 +50,7 @@ } SystemException::SystemException(const char* s, int err_) - : Exception(s), err(err_) + : Exception("%s", s), err(err_) { strncat(str_, ": ", len-1-strlen(str_)); #ifdef _WIN32