From 40e2b37864153280581145af253a85630f4d0417 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Dec 2005 00:09:01 +0000 Subject: Signed octets in dns forward lookup! GAH git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2091 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dns.cpp b/src/dns.cpp index 738fd0116..5d6431265 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -717,7 +717,7 @@ std::string DNS::GetResultIP() } if (result) { - sprintf(r,"%d.%d.%d.%d",result[0],result[1],result[2],result[3]); + sprintf(r,"%ld.%ld.%ld.%ld",result[0],result[1],result[2],result[3]); return r; } else -- cgit v1.2.3