From e0ffef80bd5590e729e1d9f3c8574104f267ca92 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 13 Aug 2010 08:53:37 -0400 Subject: Fix the stupid untested off-by-two ident length check --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 1b7984a99..c84cba369 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1724,7 +1724,7 @@ bool User::ChangeIdent(const char* newident) if (this->ServerInstance->Config->CycleHosts && !MOD_RESULT) this->WriteCommonExcept("%s","QUIT :Changing ident"); - this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax + 1); + this->ident.assign(newident, 0, ServerInstance->Config->Limits.IdentMax - 1); this->InvalidateCache(); -- cgit v1.3.1-10-gc9f91