From 6f11116b1c752806db9fd73b6ae56a3dae36f45c Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 31 Mar 2019 00:08:11 +0100 Subject: [PATCH] strtime: Explicitly cast char array to const string. --- src/easy/easy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/easy/easy.cpp b/src/easy/easy.cpp index 2bb631b..ef20bff 100644 --- a/src/easy/easy.cpp +++ b/src/easy/easy.cpp @@ -48,11 +48,11 @@ const string Easy::time::strtime(const string &format, const bool &local) const { timeinfo = std::gmtime(&time); } - char buffer[bufsize]; + char buffer[bufsize]; std::strftime(buffer, bufsize, format.c_str(), timeinfo); - return buffer; + return static_cast(buffer); } std::ostream &Mastodon::Easy::operator <<(std::ostream &out,