From ec0dd17d5ba1a0b3b6f658ab352faa2ff58c866c Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Dec 2005 00:26:51 +0000 Subject: Bloody ip addresses. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2097 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/dns.cpp b/src/dns.cpp index 04aa93b6c..86bf2b7f2 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -717,12 +717,7 @@ std::string DNS::GetResultIP() } if (result) { - unsigned long oct1 = (unsigned)result[0]; - unsigned long oct2 = (unsigned)result[1]; - unsigned long oct3 = (unsigned)result[2]; - unsigned long oct4 = (unsigned)result[3]; - sprintf(r,"%lu.%lu.%lu.%lu",oct1,oct2,oct3,oct4); - return r; + return dns_ntoa4_s((in_addr*)&result,r); } else { -- cgit v1.2.3