summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-10 22:59:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-05-10 22:59:53 +0000
commita5f22007f0c42da861eaf566a5cf64417cebfdf4 (patch)
treedb833ed0d5d208c5e9db811f322858b5b9f255c4 /src
parent44809375aac55014c093bf22ef1a70a08a5c09a0 (diff)
Fix output corruption when host is exactly 64 chars long
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3944 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dnsqueue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp
index fee15febd..975884796 100644
--- a/src/dnsqueue.cpp
+++ b/src/dnsqueue.cpp
@@ -111,8 +111,8 @@ public:
{
if ((std::string((char*)inet_ntoa(usr->ip4)) == ip) && (hostname.length() < 65))
{
- strlcpy(usr->host,hostname.c_str(),MAXBUF);
- strlcpy(usr->dhost,hostname.c_str(),MAXBUF);
+ strlcpy(usr->host,hostname.c_str(),64);
+ strlcpy(usr->dhost,hostname.c_str(),64);
/*address_cache::iterator address = addrcache.find(usr->ip4);
if (address == addrcache.end())
{