summaryrefslogtreecommitdiff
path: root/json/jsoncpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'json/jsoncpp.cpp')
-rw-r--r--json/jsoncpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/json/jsoncpp.cpp b/json/jsoncpp.cpp
index 307cf560..f6661c6a 100644
--- a/json/jsoncpp.cpp
+++ b/json/jsoncpp.cpp
@@ -2654,7 +2654,7 @@ static inline void releaseStringValue(char* value, unsigned) { free(value); }
namespace Json {
// BN: subclass
-Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg) {}
+Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg.c_str()) {}
Exception::~Exception() JSONCPP_NOEXCEPT {}
// BN: removed what()
RuntimeError::RuntimeError(JSONCPP_STRING const& msg) : Exception(msg) {}