summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 00:09:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 00:09:01 +0000
commit40e2b37864153280581145af253a85630f4d0417 (patch)
tree04166009364490458ac33d9958b1efb5c3467884 /src/dns.cpp
parent58acfbf66be3efd17e099c09ed99ffa2c43aa954 (diff)
Signed octets in dns forward lookup! GAH
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2091 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
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