]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix build failure under FreeBSD 9.3 1621/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 23 Jul 2014 14:56:12 +0000 (16:56 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 23 Jul 2014 14:56:12 +0000 (16:56 +0200)
pdns/ext/yahttp/yahttp/utility.hpp

index dcd52077d9ee5eb2c0b689677c1808eda29fc4a0..191ef247223e5a21fb78f832aa370f504b761852 100644 (file)
@@ -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<unsigned char>(*iter));
+          snprintf(repl,3,"%02x", static_cast<unsigned char>(*iter));
           result = result.replace(pos, 1, "%", 1).insert(pos+1, repl, 2);
           iter = result.begin() + pos + 2;
         }