diff options
Diffstat (limited to 'common/rfb/Exception.h')
-rw-r--r-- | common/rfb/Exception.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rfb/Exception.h b/common/rfb/Exception.h index 773c65fa..3c8a461c 100644 --- a/common/rfb/Exception.h +++ b/common/rfb/Exception.h @@ -24,7 +24,9 @@ namespace rfb { typedef rdr::Exception Exception; struct AuthFailureException : public Exception { AuthFailureException(const char* reason) - : Exception("%s", reason) {} + : Exception(reason) {} + AuthFailureException(std::string& reason) + : Exception(reason) {} }; struct AuthCancelledException : public rfb::Exception { AuthCancelledException() |