Skip to content

Commit 0066b88

Browse files
committed
Merge branch '2.14' into 2.15
2 parents c67612e + c37bf18 commit 0066b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/core/util/TextBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ public char[] finishCurrentSegment() throws IOException {
933933
int oldLen = _currentSegment.length;
934934
_segmentSize += oldLen;
935935
if (_segmentSize < 0) {
936-
_reportBufferOverflow(_segmentSize, oldLen);
936+
_reportBufferOverflow(_segmentSize - oldLen, oldLen);
937937
}
938938
_currentSize = 0;
939939
validateStringLength(_segmentSize);

0 commit comments

Comments
 (0)