aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-02 13:34:04 +0000
committerGravatar brain2006-03-02 13:34:04 +0000
commitaf0f219afc4099a6cc0b8b7f2d96786f0baf6b21 (patch)
tree67765b9fd0edd1a466aa1d2d8d83602e2b413342 /src/users.cpp
parentRemove debug, allow empty 'final' parameter (diff)
downloadinspircd++-af0f219afc4099a6cc0b8b7f2d96786f0baf6b21.tar.gz
inspircd++-af0f219afc4099a6cc0b8b7f2d96786f0baf6b21.tar.bz2
inspircd++-af0f219afc4099a6cc0b8b7f2d96786f0baf6b21.zip
Made host fields more correct 64 in length with 63 copies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3425 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d6e44c494..fb5079569 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -519,8 +519,8 @@ void AddWhoWas(userrec* u)
WhoWasUser *a = new WhoWasUser();
strlcpy(a->nick,u->nick,NICKMAX-1);
strlcpy(a->ident,u->ident,IDENTMAX);
- strlcpy(a->dhost,u->dhost,160);
- strlcpy(a->host,u->host,160);
+ strlcpy(a->dhost,u->dhost,63);
+ strlcpy(a->host,u->host,63);
strlcpy(a->fullname,u->fullname,MAXGECOS);
if (u->server)
strlcpy(a->server,u->server,256);
@@ -610,8 +610,8 @@ void AddClient(int socket, int port, bool iscached, in_addr ip4)
/* We don't know the host yet, dns lookup could still be going on,
* so instead we just put the ip address here, for now.
*/
- strlcpy(clientlist[tempnick]->host, ipaddr, 160);
- strlcpy(clientlist[tempnick]->dhost, ipaddr, 160);
+ strlcpy(clientlist[tempnick]->host, ipaddr, 63);
+ strlcpy(clientlist[tempnick]->dhost, ipaddr, 63);
clientlist[tempnick]->server = (char*)FindServerNamePtr(Config->ServerName);
strlcpy(clientlist[tempnick]->ident, "unknown",IDENTMAX);
clientlist[tempnick]->registered = 0;