From 76cb0571ed2c94cca327129ff21991ef8d1f7a19 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 12 Nov 2006 16:02:10 +0000 Subject: Fix off-by-one error in userrec::ChangeDisplayedHost, some hosts were truncated git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5709 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index f695db7c4..5d6ac2ce7 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1816,7 +1816,8 @@ bool userrec::ChangeDisplayedHost(const char* host) if (this->ServerInstance->Config->CycleHosts) this->WriteCommonExcept("%s","QUIT :Changing hosts"); - strlcpy(this->dhost,host,63); + /* Fix by Om: userrec::dhost is 65 long, this was truncating some long hosts */ + strlcpy(this->dhost,host,64); if (this->ServerInstance->Config->CycleHosts) { @@ -2072,4 +2073,3 @@ void userrec::HandleEvent(EventType et, int errornum) ServerInstance->Log(DEBUG,"Exception in userrec::HandleEvent intercepted"); } } - -- cgit v1.2.3