summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-20 13:30:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-20 13:30:46 +0000
commit509f691a3c3455f8c11f1ba9b94554a2303e9362 (patch)
tree67d697812b932db16df6ecb69c65d46877a555bf /src
parent87a4eb739f94bc4a1f2976911338effe5caa0c0f (diff)
Fix a bad malloc (why the hell is it malloc???) in m_nationalchars
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11240 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rwxr-xr-xsrc/modules/m_nationalchars.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp
index 64de4d858..72f233715 100755
--- a/src/modules/m_nationalchars.cpp
+++ b/src/modules/m_nationalchars.cpp
@@ -226,7 +226,7 @@ class ModuleNationalChars : public Module
public:
ModuleNationalChars(InspIRCd* Me) : Module(Me)
{
- rememberer = (caller2<bool, const char*, size_t> *) malloc(sizeof(rememberer));
+ rememberer = (caller2<bool, const char*, size_t> *) malloc(sizeof(caller2<bool, const char*, size_t>));
lowermap_rememberer = national_case_insensitive_map;
memcpy(m_lower, rfc_case_insensitive_map, 256);