strtime: Explicitly cast char array to const string.
the build was successful Details

This commit is contained in:
tastytea 2019-03-31 00:08:11 +01:00
parent 6690d2bd0b
commit 6f11116b1c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -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<const string>(buffer);
}
std::ostream &Mastodon::Easy::operator <<(std::ostream &out,