diff --git a/YSFGateway/Log.cpp b/YSFGateway/Log.cpp index e289fe3..fc37ebf 100644 --- a/YSFGateway/Log.cpp +++ b/YSFGateway/Log.cpp @@ -61,7 +61,7 @@ static bool LogOpen() ::fclose(m_fpLog); } - char filename[50U]; + char filename[100U]; #if defined(_WIN32) || defined(_WIN64) ::sprintf(filename, "%s\\%s-%04d-%02d-%02d.log", m_filePath.c_str(), m_fileRoot.c_str(), tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday); #else diff --git a/YSFParrot/Log.cpp b/YSFParrot/Log.cpp index e289fe3..fc37ebf 100644 --- a/YSFParrot/Log.cpp +++ b/YSFParrot/Log.cpp @@ -61,7 +61,7 @@ static bool LogOpen() ::fclose(m_fpLog); } - char filename[50U]; + char filename[100U]; #if defined(_WIN32) || defined(_WIN64) ::sprintf(filename, "%s\\%s-%04d-%02d-%02d.log", m_filePath.c_str(), m_fileRoot.c_str(), tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday); #else diff --git a/YSFReflector/Log.cpp b/YSFReflector/Log.cpp index e289fe3..fc37ebf 100644 --- a/YSFReflector/Log.cpp +++ b/YSFReflector/Log.cpp @@ -61,7 +61,7 @@ static bool LogOpen() ::fclose(m_fpLog); } - char filename[50U]; + char filename[100U]; #if defined(_WIN32) || defined(_WIN64) ::sprintf(filename, "%s\\%s-%04d-%02d-%02d.log", m_filePath.c_str(), m_fileRoot.c_str(), tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday); #else diff --git a/YSFReflector/YSFReflector.cpp b/YSFReflector/YSFReflector.cpp index cc4417f..bc9b74a 100644 --- a/YSFReflector/YSFReflector.cpp +++ b/YSFReflector/YSFReflector.cpp @@ -87,7 +87,7 @@ void CYSFReflector::run() { bool ret = m_conf.read(); if (!ret) { - ::fprintf(stderr, "YSFRefector: cannot read the .ini file\n"); + ::fprintf(stderr, "YSFReflector: cannot read the .ini file\n"); return; }