diff options
-rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index 4e81bf2af..73648fb9d 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -113,7 +113,7 @@ bool TreeSocket::ParseUID(const std::string &source, std::deque<std::string> &pa strlcpy(_new->host, params[3].c_str(),64); strlcpy(_new->dhost, params[4].c_str(),64); _new->server = this->Instance->FindServerNamePtr(remoteserver->GetName().c_str()); - strlcpy(_new->ident, params[5].c_str(),IDENTMAX); + strlcpy(_new->ident, params[5].c_str(),IDENTMAX + 1); strlcpy(_new->fullname, params[9].c_str(),MAXGECOS); _new->registered = REG_ALL; _new->signon = signon; diff --git a/src/users.cpp b/src/users.cpp index edcc54be5..be51cc46a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1444,7 +1444,7 @@ bool User::ChangeIdent(const char* newident) if (this->ServerInstance->Config->CycleHosts) this->WriteCommonExcept("%s","QUIT :Changing ident"); - strlcpy(this->ident, newident, IDENTMAX+2); + strlcpy(this->ident, newident, IDENTMAX+1); this->InvalidateCache(); |