Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allocate the proper memory for formatString. Fix a warning with gcc 7.1
/root/firefox-gcc-last/toolkit/components/jsoncpp/src/lib_json/json_writer.cpp:139:16: note: using the range [-2147483648, 2147483647] for directive argument /root/firefox-gcc-last/toolkit/components/jsoncpp/src/lib_json/json_writer.cpp:146:10: note: 'sprintf' output between 5 and 15 bytes into a destination of size 6 sprintf(formatString, "%%.%dg", precision); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Loading branch information