aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/Resolver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/Resolver.cxx')
-rw-r--r--src/system/Resolver.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system/Resolver.cxx b/src/system/Resolver.cxx
index b7fa80c38..51a5b1ed7 100644
--- a/src/system/Resolver.cxx
+++ b/src/system/Resolver.cxx
@@ -33,6 +33,7 @@
#endif /* G_OS_WIN32 */
#include <string.h>
+#include <stdio.h>
const Domain resolver_domain("resolver");
@@ -118,7 +119,7 @@ resolve_host_port(const char *host_port, unsigned default_port,
char buffer[32];
if (port == NULL && default_port != 0) {
- g_snprintf(buffer, sizeof(buffer), "%u", default_port);
+ snprintf(buffer, sizeof(buffer), "%u", default_port);
port = buffer;
}