summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 18:55:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 18:55:51 +0000
commit7e4b66804044616a85d5049cbfdb88efa012cc51 (patch)
tree72bcfbc7e627105a6ccc9709def281684e4a9136 /src/usermanager.cpp
parentcf83031f7bf1c037bf726df84f93686b9631531b (diff)
Fix this to not have the same issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9797 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 7f07bc69f..a171c32d2 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -78,7 +78,8 @@ void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscache
New->lastping = 1;
/* Smarter than your average bear^H^H^H^Hset of strlcpys. */
- New->dhost.assign(New->host.assign(New->GetIPString(), 64));
+ New->dhost.assign(New->GetIPString(), 0, 64);
+ New->host.assign(New->GetIPString(), 0, 64);
Instance->Users->AddLocalClone(New);
Instance->Users->AddGlobalClone(New);