]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Process review comments 11124/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 7 Jan 2022 09:44:24 +0000 (10:44 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 7 Jan 2022 09:44:24 +0000 (10:44 +0100)
pdns/recursordist/recursor-tsan.supp
pdns/syncres.cc

index ba40b456e91a0ebc9a605199e8b9a0fa49b57516..ee6d9eaeea684ed8a06682f19acead9c55d3ebcf 100644 (file)
@@ -1,2 +1,3 @@
 # We don't care about stats for now
+race:doStats
 race:g_stats
index bddb41f429e9b3057df6b8d981d7e6e413b40a2c..4daa7440bd5e460caaddf6315e5ce6c3bf165a10 100644 (file)
@@ -116,7 +116,7 @@ static inline std::string fmtfloat(const char* fmt, double f)
   if (ret < 0 || ret >= static_cast<int>(sizeof(buf))) {
     return "?";
   }
-  return std::string(buf, strlen(buf));
+  return std::string(buf, ret);
 }
 
 static inline void accountAuthLatency(uint64_t usec, int family)