From: brain Date: Fri, 23 May 2008 18:55:51 +0000 (+0000) Subject: Fix this to not have the same issue X-Git-Tag: v2.0.23~3103 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=7e4b66804044616a85d5049cbfdb88efa012cc51;p=user%2Fhenk%2Fcode%2Finspircd.git Fix this to not have the same issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9797 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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);