summaryrefslogtreecommitdiff
path: root/lib/Exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r--lib/Exceptions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index 734e5e9..0376fee 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -27,7 +27,7 @@ void * Base::operator new(size_t s, void * p) {
return p;
}
-GeneralException::GeneralException(String emsg) : msg(strdup(emsg.to_charp())) { }
+GeneralException::GeneralException(String emsg) : msg(emsg.strdup()) { }
GeneralException::GeneralException() : msg(0) { }
GeneralException::GeneralException(const GeneralException & e) : msg(strdup(e.msg)) { }