aboutsummaryrefslogtreecommitdiffstats
path: root/core/except.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/except.cpp')
-rw-r--r--core/except.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/except.cpp b/core/except.cpp
index 45fd4eb5..86c7ccca 100644
--- a/core/except.cpp
+++ b/core/except.cpp
@@ -21,7 +21,7 @@ void base_exception::setMessage(const char* msg, std::va_list args)
if(msglen > 0) LIKELY
{
mMessage.resize(static_cast<size_t>(msglen)+1);
- std::vsnprintf(const_cast<char*>(mMessage.data()), mMessage.length(), msg, args2);
+ std::vsnprintf(mMessage.data(), mMessage.length(), msg, args2);
mMessage.pop_back();
}
va_end(args2);