diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_alias.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_filter.h | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 94c64b405..a8f079bf1 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -77,7 +77,7 @@ class ModuleAlias : public Module : Module(Me) { ReadAliases(); - pars.resize(127); + pars.resize(MAXPARAMETERS); } void Implements(char* List) @@ -251,10 +251,10 @@ class ModuleAlias : public Module SearchAndReplace(newline, "\r", "$"); irc::tokenstream ss(newline); - const char* parv[127]; + const char* parv[MAXPARAMETERS]; int x = 0; - while (ss.GetToken(pars[x])) + while (ss.GetToken(pars[x]) && x < MAXPARAMETERS) { parv[x] = pars[x].c_str(); x++; diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 576269325..5e74177e5 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -341,7 +341,7 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters command_t* c = ServerInstance->Parser->GetHandler(command); if (c) { - const char* params[127]; + const char* params[MAXPARAMETERS]; for (int item = 0; item < pcnt; item++) params[item] = parameters[item]; params[replacepoint] = "Reason filtered"; diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 23362ca99..a321ee36b 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1400,7 +1400,7 @@ bool TreeSocket::ProcessLine(std::string &line) { if (Utils->IsServer(prefix)) { - const char* modelist[127]; + const char* modelist[MAXPARAMETERS]; for (size_t i = 0; i < params.size(); i++) modelist[i] = params[i].c_str(); userrec* fake = new userrec(Instance); |