From 7e4b66804044616a85d5049cbfdb88efa012cc51 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 May 2008 18:55:51 +0000 Subject: Fix this to not have the same issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9797 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/usermanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usermanager.cpp') 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); -- cgit v1.2.3