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 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