From 96de3c22e822d4595140ed84dcf398336c2b0b33 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 11 Oct 2007 22:15:58 +0000 Subject: Check is off by one, this wont break anything but will cut a character off the set ident git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8149 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chgident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_chgident.cpp') diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index ee6f6e531..272bef31f 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -43,7 +43,7 @@ class cmd_chgident : public command_t return CMD_FAILURE; } - if (strlen(parameters[1]) > IDENTMAX) + if (strlen(parameters[1]) > IDENTMAX - 1) { user->WriteServ("NOTICE %s :*** CHGIDENT: Ident is too long", user->nick); return CMD_FAILURE; -- cgit v1.2.3