diff options
author | louiz’ <louiz@louiz.org> | 2020-10-04 21:31:15 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-12-28 23:43:13 +0100 |
commit | 752931b7a591544064394a85ec6d5b37ba1b0950 (patch) | |
tree | b9e1bc799e9ec2d186604e30c55f9b30ed31b4a9 | |
parent | 99bb8c977cb5c1c11aa32aa6d20410f9b295a789 (diff) | |
download | biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.gz biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.bz2 biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.xz biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.zip |
fix localtime call -> _r
-rw-r--r-- | src/xmpp/biboumi_adhoc_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |