From: Ruben Kerkhof Date: Wed, 23 Jul 2014 14:56:12 +0000 (+0200) Subject: Fix build failure under FreeBSD 9.3 X-Git-Tag: auth-3.4.0-rc1~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf5e0a3b4518e2b5780de5da4a826f776587d9f2;p=thirdparty%2Fpdns.git Fix build failure under FreeBSD 9.3 --- 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; }