diff options
-rw-r--r-- | include/connection.h | 2 | ||||
-rw-r--r-- | src/dnsqueue.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/connection.h b/include/connection.h index 52a485f8b..6f918204d 100644 --- a/include/connection.h +++ b/include/connection.h @@ -32,7 +32,7 @@ class connection : public Extensible /** Hostname of connection. Not used if this is a serverrec */ - char host[64]; + char host[65]; /** Stats counter for bytes inbound */ 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()) { |