diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index 045421532..2ab16acbf 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp @@ -142,7 +142,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p char buffer[36]; int len = -1; - char formatString[6]; + char formatString[15]; snprintf(formatString, sizeof(formatString), "%%.%dg", precision); // Print into the buffer. We need not request the alternative representation