mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Fix "possibly-truncated" compiler warning in BuildJSON snprintf()
This commit is contained in:
parent
23c3aa056f
commit
946ceba832
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ void JSON::BuildJSON(NullDoubleWriter& writer, Value* val, const std::string& na
|
||||||
if ( timestamps == TS_ISO8601 )
|
if ( timestamps == TS_ISO8601 )
|
||||||
{
|
{
|
||||||
char buffer[40];
|
char buffer[40];
|
||||||
char buffer2[40];
|
char buffer2[48];
|
||||||
time_t the_time = time_t(floor(val->val.double_val));
|
time_t the_time = time_t(floor(val->val.double_val));
|
||||||
struct tm t;
|
struct tm t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue