summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-27 14:50:22 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-27 14:50:22 +0100
commit8365be5414ae0f6d09724bd540db41ba24b2a7fd (patch)
tree9fa748c1228c804a45904c2b95221fca34423222 /src/modules/m_check.cpp
parente4167bc3a150116e4235cfa106ab72ee0d14faca (diff)
m_check Fix non-standard format specifier %s passed to strftime() causing problems on systems not supporting it (Windows)
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 96b357f20..9c5c414f1 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -38,8 +38,10 @@ class CommandCheck : public Command
{
char timebuf[60];
struct tm *mytime = gmtime(&time);
- strftime(timebuf, 59, "%Y-%m-%d %H:%M:%S UTC (%s)", mytime);
- return std::string(timebuf);
+ strftime(timebuf, 59, "%Y-%m-%d %H:%M:%S UTC (", mytime);
+ std::string ret(timebuf);
+ ret.append(ConvToStr(time)).push_back(')');
+ return ret;
}
void dumpExt(User* user, const std::string& checkstr, Extensible* ext)