summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 16:02:10 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 16:02:10 +0000
commit76cb0571ed2c94cca327129ff21991ef8d1f7a19 (patch)
treea801255de19bb05df0063558ab71350b8ceaa5ed /src
parentb0316eb0472aff155feda1b3c9d0c59d44e3dc3e (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
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");
}
}
-