From 28f729ab77fa74e0750cffe2a5b2b2a503e7ba44 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 11 Oct 2007 22:17:10 +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/branches/1_1_stable@8150 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 e13d211f4..cb2195784 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -44,7 +44,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.3.1-10-gc9f91