From 752931b7a591544064394a85ec6d5b37ba1b0950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 4 Oct 2020 21:31:15 +0200 Subject: fix localtime call -> _r --- src/xmpp/biboumi_adhoc_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp index 75ae1cc..792955c 100644 --- a/src/xmpp/biboumi_adhoc_commands.cpp +++ b/src/xmpp/biboumi_adhoc_commands.cpp @@ -930,7 +930,7 @@ void GetIrcConnectionInfoStep1(XmppComponent& component, AdhocSession& session, #else constexpr std::size_t timestamp_size{10 + 1 + 8 + 1}; char buf[timestamp_size] = {}; - const auto res = std::strftime(buf, timestamp_size, "%F %T", localtime(&now_c, &tm)); + const auto res = std::strftime(buf, timestamp_size, "%F %T", localtime_r(&now_c, &tm)); if (res > 0) ss << " since " << buf; #endif -- cgit v1.2.3