From ba4c7d813808cad3dd79bfb58025b61506482252 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 18 Mar 2010 19:03:35 +0000 Subject: Made the exception list really work git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2820 5417fbe8-f217-4b02-8779-1006273d7864 --- src/sessions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sessions.c b/src/sessions.c index b0ca9b374..94752482c 100644 --- a/src/sessions.c +++ b/src/sessions.c @@ -325,7 +325,7 @@ int exception_add(User * u, const char *mask, const int limit, } nexceptions++; - exceptions = new Exception[nexceptions]; + exceptions = static_cast(srealloc(exceptions, sizeof(Exception) * nexceptions)); exceptions[nexceptions - 1].mask = sstrdup(mask); exceptions[nexceptions - 1].limit = limit; -- cgit