-Not correctly resizing internal string buffer when parsing long JSON documents

This commit is contained in:
JamesNK
2008-05-28 07:28:03 +00:00
parent 8db3846440
commit 03fb558bb9
+1 -1
View File
@@ -75,7 +75,7 @@ namespace Newtonsoft.Json
private void EnsureSize(int appendLength)
{
char[] newBuffer = new char[_position + appendLength * 2];
char[] newBuffer = new char[(_position + appendLength) * 2];
Array.Copy(_buffer, newBuffer, _position);