diff options
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index b5a33bd..734e5e9 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -17,15 +17,15 @@ void * Base::malloc(ssize_t s) const { return xmalloc(s); } -/* + void * Base::operator new(size_t s) { return memset(xmalloc(s), 0, s); } -void * Base::operator new(size_t s, void * & p) { - return memset(p = xmalloc(s), 0, s); +void * Base::operator new(size_t s, void * p) { + memset(p, 0, s); + return p; } -*/ GeneralException::GeneralException(String emsg) : msg(strdup(emsg.to_charp())) { } GeneralException::GeneralException() : msg(0) { } |