summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-10-04 21:31:15 +0200
committerlouiz’ <louiz@louiz.org>2020-12-28 23:43:13 +0100
commit752931b7a591544064394a85ec6d5b37ba1b0950 (patch)
treeb9e1bc799e9ec2d186604e30c55f9b30ed31b4a9 /src
parent99bb8c977cb5c1c11aa32aa6d20410f9b295a789 (diff)
downloadbiboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.gz
biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.bz2
biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.tar.xz
biboumi-752931b7a591544064394a85ec6d5b37ba1b0950.zip
fix localtime call -> _r
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/biboumi_adhoc_commands.cpp2
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