From 54e62a566c003363078aa5273a728c0a0657b3a0 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 27 Oct 2001 11:15:57 +0000 Subject: Reworking on it... --- lib/Exceptions.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Exceptions.cc') 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)) { } -- cgit v1.2.3