From ff11847cea53bc63b0c489b423a4e4fa6c05184b Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 5 Sep 2008 22:18:10 +0000 Subject: Fix unsafe cast (const char * -> char *). Doesn't really matter, though, as nothing currently uses this code. ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10400 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_inviteexception.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index e88f5c58b..40c92363a 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.cpp @@ -97,7 +97,7 @@ public: if (InspIRCd::Match(LM->user->GetFullRealHost(), it->mask) || InspIRCd::Match(LM->user->GetFullHost(), it->mask.c_str()) || (InspIRCd::MatchCIDR(mask, it->mask))) { // They match an entry - return (char*)it->mask.c_str(); + return it->mask.c_str(); } } return NULL; -- cgit v1.2.3