Fix "possibly-truncated" compiler warning in BuildJSON snprintf()

This commit is contained in:
Jon Siwek 2020-06-24 17:59:28 -07:00
parent 23c3aa056f
commit 946ceba832

View file

@ -132,7 +132,7 @@ void JSON::BuildJSON(NullDoubleWriter& writer, Value* val, const std::string& na
if ( timestamps == TS_ISO8601 )
{
char buffer[40];
char buffer2[40];
char buffer2[48];
time_t the_time = time_t(floor(val->val.double_val));
struct tm t;