diff options
author | madmaxoft <github@xoft.cz> | 2014-06-04 10:46:33 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-06-04 10:47:12 +0200 |
commit | b79142c8e758bbb0f1ada23407a6ca184cac1163 (patch) | |
tree | 9b0a5d3b256344ad5ed9d8647f4fe9b8da8c2787 /lib/jsoncpp/src/lib_json | |
parent | Exploded creepers drop nothing, part of #1058 (diff) | |
download | cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar.gz cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar.bz2 cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar.lz cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar.xz cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.tar.zst cuberite-b79142c8e758bbb0f1ada23407a6ca184cac1163.zip |
Diffstat (limited to 'lib/jsoncpp/src/lib_json')
-rw-r--r-- | lib/jsoncpp/src/lib_json/json_reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsoncpp/src/lib_json/json_reader.cpp b/lib/jsoncpp/src/lib_json/json_reader.cpp index e9d6b88d2..fb8421de9 100644 --- a/lib/jsoncpp/src/lib_json/json_reader.cpp +++ b/lib/jsoncpp/src/lib_json/json_reader.cpp @@ -623,7 +623,7 @@ Reader::decodeDouble( Token &token ) const int bufferSize = 32; int count; int length = int(token.end_ - token.start_); - if ( length <= bufferSize ) + if ( length < bufferSize ) { Char buffer[bufferSize]; memcpy( buffer, token.start_, length ); |