Skip to content

Commit 2e34708

Browse files
Achilles1515rstam
authored andcommitted
CSHARP-2442: Increase StringBuilder capacity.
1 parent 1ff8038 commit 2e34708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Bson/IO/JsonWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ private string EscapedString(string value)
819819
return value;
820820
}
821821

822-
var sb = new StringBuilder(value.Length);
822+
var sb = new StringBuilder(value.Length + 1);
823823

824824
foreach (char c in value)
825825
{

0 commit comments

Comments
 (0)