summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 5d6431265..b5488b960 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -717,7 +717,7 @@ std::string DNS::GetResultIP()
}
if (result)
{
- sprintf(r,"%ld.%ld.%ld.%ld",result[0],result[1],result[2],result[3]);
+ sprintf(r,"%u.%u.%u.%u",result[0],result[1],result[2],result[3]);
return r;
}
else