Core/Logging: Fixed filenames of backup logs

Closes #11765
This commit is contained in:
Shauren
2014-03-24 09:01:44 +01:00
parent 894eb9a445
commit aeff7944d1

View File

@@ -81,6 +81,7 @@ FILE* AppenderFile::OpenFile(std::string const &filename, std::string const &mod
std::string newName(fullName);
newName.push_back('.');
newName.append(LogMessage::getTimeStr(time(NULL)));
std::replace(newName.begin(), newName.end(), ':', '-');
rename(fullName.c_str(), newName.c_str()); // no error handling... if we couldn't make a backup, just ignore
}