From: Otto Moerbeek Date: Fri, 7 Jan 2022 09:44:24 +0000 (+0100) Subject: Process review comments X-Git-Tag: auth-4.7.0-alpha1~90^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11124%2Fhead;p=thirdparty%2Fpdns.git Process review comments --- diff --git a/pdns/recursordist/recursor-tsan.supp b/pdns/recursordist/recursor-tsan.supp index ba40b456e9..ee6d9eaeea 100644 --- a/pdns/recursordist/recursor-tsan.supp +++ b/pdns/recursordist/recursor-tsan.supp @@ -1,2 +1,3 @@ # We don't care about stats for now +race:doStats race:g_stats diff --git a/pdns/syncres.cc b/pdns/syncres.cc index bddb41f429..4daa7440bd 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -116,7 +116,7 @@ static inline std::string fmtfloat(const char* fmt, double f) if (ret < 0 || ret >= static_cast(sizeof(buf))) { return "?"; } - return std::string(buf, strlen(buf)); + return std::string(buf, ret); } static inline void accountAuthLatency(uint64_t usec, int family)