From bf5e0a3b4518e2b5780de5da4a826f776587d9f2 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 23 Jul 2014 16:56:12 +0200 Subject: [PATCH] Fix build failure under FreeBSD 9.3 --- pdns/ext/yahttp/yahttp/utility.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/ext/yahttp/yahttp/utility.hpp b/pdns/ext/yahttp/yahttp/utility.hpp index dcd52077d9..191ef24722 100644 --- a/pdns/ext/yahttp/yahttp/utility.hpp +++ b/pdns/ext/yahttp/yahttp/utility.hpp @@ -224,7 +224,7 @@ namespace YaHTTP { if (!std::isalnum(*iter) && (!asUrl || skip.find(*iter) == std::string::npos)) { // replace with different thing pos = std::distance(result.begin(), iter); - std::snprintf(repl,3,"%02x", static_cast(*iter)); + snprintf(repl,3,"%02x", static_cast(*iter)); result = result.replace(pos, 1, "%", 1).insert(pos+1, repl, 2); iter = result.begin() + pos + 2; } -- 2.47.2