mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fixes a crash when strftime overflowed buffer #205
This commit is contained in:
@@ -102,13 +102,13 @@ private:
|
||||
|
||||
const char* get_timestamp() {
|
||||
std::time_t t = std::time(NULL);
|
||||
std::strftime(buffer,30,"%Y-%m-%d %H:%M:%S%z",std::localtime(&t));
|
||||
std::strftime(buffer,39,"%Y-%m-%d %H:%M:%S%z",std::localtime(&t));
|
||||
return buffer;
|
||||
}
|
||||
|
||||
mutex_type m_lock;
|
||||
|
||||
char buffer[30];
|
||||
char buffer[40];
|
||||
const level m_static_channels;
|
||||
level m_dynamic_channels;
|
||||
std::ostream* m_out;
|
||||
|
||||
Reference in New Issue
Block a user