aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-04-21 18:11:54 +0000
committerGravatar brain2008-04-21 18:11:54 +0000
commit78ff73e0fbe857398413bc2af8c514b5cfe9dd3b (patch)
tree65bb1c8c327564df4db784cdb88d608116f80925 /src/mode.cpp
parentPatch to fix timedbans crash reported earlier today, thanks for the headsup w... (diff)
Don't memset a vector. backport of fix for possible stack corruption by a memset from 1.2 patch by GreenReaper
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9570 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 2949dcbfb..74a0dae86 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1064,7 +1064,7 @@ ModeParser::ModeParser(InspIRCd* Instance) : ServerInstance(Instance)
/* Clear mode list */
memset(modehandlers, 0, sizeof(modehandlers));
- memset(modewatchers, 0, sizeof(modewatchers));
+ modewatchers.clear();
/* Last parse string */
LastParse.clear();