temporary fix for a strange windows-only crash

This commit is contained in:
Tomasz Śniatowski 2008-06-18 20:28:53 +01:00
parent 17a8708a32
commit 345d960ca1

View file

@ -95,7 +95,9 @@ std::string list_logdomains()
}
std::string get_timestamp(const time_t& t, const std::string& format) {
char buf[100] = {0};
//@FIXME declaring this static stops a very weird crash on windows
//related in some ways to stack size and display::scroll.
static char buf[100] = {0};
tm* lt = localtime(&t);
if (lt) {
strftime(buf, 100, format.c_str(), lt);