diff options
| author | 2006-05-10 23:00:00 +0000 | |
|---|---|---|
| committer | 2006-05-10 23:00:00 +0000 | |
| commit | f560d8b59fdbfab4fc7100deceb5751c551bd412 (patch) | |
| tree | 5bb4a4ac710f9164ef34c0b81e05bfa2b9d71652 /src/dnsqueue.cpp | |
| parent | Fix for crash on: /OS RAW PUSH non-existent-nick :::nick!ident@host KICK #cha... (diff) | |
Fix output corruption when host is exactly 64 chars long
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3945 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dnsqueue.cpp')
| -rw-r--r-- | src/dnsqueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 20118038b..285c556fe 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -129,8 +129,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()) { |
