temporary fix for a strange windows-only crash
This commit is contained in:
parent
17a8708a32
commit
345d960ca1
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue