diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-18 19:03:35 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-18 19:03:35 +0000 |
commit | ba4c7d813808cad3dd79bfb58025b61506482252 (patch) | |
tree | 1d81cb643069573c55036215a6efb1f860b52186 /src | |
parent | 2871c4701b78d3c062091c9c795287c44e0c9d78 (diff) |
Made the exception list really work
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2820 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/sessions.c | 2 |
1 files changed, 1 insertions, 1 deletions
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<Exception *>(srealloc(exceptions, sizeof(Exception) * nexceptions)); exceptions[nexceptions - 1].mask = sstrdup(mask); exceptions[nexceptions - 1].limit = limit; |